mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
rewrite lower negative bounds to avoid integer constants underflow of literals
This commit is contained in:
parent
4dd9fa30ab
commit
e7f89135d3
1 changed files with 1 additions and 1 deletions
|
@ -1398,7 +1398,7 @@ scalarSize(char type)
|
|||
return;
|
||||
case 4:
|
||||
*(int32_t*)address = (int32_t)big;
|
||||
if (big > 2147483647 || big < -2147483648)
|
||||
if (big > 2147483647 || big + 2147483648 < 0 )
|
||||
{
|
||||
NSLog(@"Lost information converting decoded value to int32_t");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue