Fixed: GCC warnings
This commit is contained in:
parent
ae23dc32b3
commit
03d2836785
1 changed files with 3 additions and 3 deletions
|
@ -5361,8 +5361,8 @@ namespace NLGUI
|
||||||
if (it->second == "lighter")
|
if (it->second == "lighter")
|
||||||
{
|
{
|
||||||
const uint lighter[] = {100, 100, 100, 100, 100, 400, 400, 700, 700};
|
const uint lighter[] = {100, 100, 100, 100, 100, 400, 400, 700, 700};
|
||||||
int index = getFontWeight() / 100 - 1;
|
uint index = getFontWeight() / 100 - 1;
|
||||||
clamp(index, 1, 9);
|
clamp(index, 1u, 9u);
|
||||||
weight = lighter[index-1];
|
weight = lighter[index-1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -5377,7 +5377,7 @@ namespace NLGUI
|
||||||
if (fromString(it->second, weight))
|
if (fromString(it->second, weight))
|
||||||
{
|
{
|
||||||
weight = (weight / 100);
|
weight = (weight / 100);
|
||||||
clamp(weight, 1, 9);
|
clamp(weight, 1u, 9u);
|
||||||
weight *= 100;
|
weight *= 100;
|
||||||
}
|
}
|
||||||
style.FontWeight = weight;
|
style.FontWeight = weight;
|
||||||
|
|
Loading…
Reference in a new issue