mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +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;
|
break;
|
||||||
}
|
}
|
||||||
value = value * 10 + (c - '0');
|
value = value * 10 + (c - '0');
|
||||||
|
divisor *= 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (yylval.nConstValue > INT16_MAX || yylval.nConstValue < INT16_MIN)
|
if (yylval.nConstValue > INT16_MAX || yylval.nConstValue < INT16_MIN)
|
||||||
|
|||||||
Reference in New Issue
Block a user