mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32: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')
|
if (c < '0' || c > '9')
|
||||||
break;
|
break;
|
||||||
|
shiftChars(1);
|
||||||
if (divisor > (UINT32_MAX - (c - '0')) / 10) {
|
if (divisor > (UINT32_MAX - (c - '0')) / 10) {
|
||||||
warning(WARNING_LARGE_CONSTANT,
|
warning(WARNING_LARGE_CONSTANT,
|
||||||
"Precision of fixed-point constant is too large\n");
|
"Precision of fixed-point constant is too large\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user