mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix readFractionalPart never shifting characters
This commit is contained in:
@@ -948,6 +948,7 @@ static void readFractionalPart(void)
|
||||
|
||||
if (c < '0' || c > '9')
|
||||
break;
|
||||
shiftChars(1);
|
||||
if (divisor > (UINT32_MAX - (c - '0')) / 10) {
|
||||
warning(WARNING_LARGE_CONSTANT,
|
||||
"Precision of fixed-point constant is too large\n");
|
||||
|
||||
Reference in New Issue
Block a user