mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix fixed-point constants not working correctly
And added a test to check their behavior
This commit is contained in:
@@ -965,6 +965,7 @@ static void readFractionalPart(void)
|
||||
break;
|
||||
}
|
||||
value = value * 10 + (c - '0');
|
||||
divisor *= 10;
|
||||
}
|
||||
|
||||
if (yylval.nConstValue > INT16_MAX || yylval.nConstValue < INT16_MIN)
|
||||
|
||||
Reference in New Issue
Block a user