mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- Fix the "Max" constant being incorrect for unsigned int types.
This commit is contained in:
parent
7afae96530
commit
d8164e0050
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ PInt::PInt(unsigned int size, bool unsign, bool compatible)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Symbols.AddSymbol(Create<PSymbolConstNumeric>(NAME_Min, this, 0u));
|
Symbols.AddSymbol(Create<PSymbolConstNumeric>(NAME_Min, this, 0u));
|
||||||
Symbols.AddSymbol(Create<PSymbolConstNumeric>(NAME_Max, this, (1u << ((8 * size) - 1))));
|
Symbols.AddSymbol(Create<PSymbolConstNumeric>(NAME_Max, this, (uint32_t) (((uint64_t) 1u << (size * 8)) - 1uL)));
|
||||||
}
|
}
|
||||||
SetOps();
|
SetOps();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue