We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 169628a commit 7b92d2dCopy full SHA for 7b92d2d
1 file changed
tccpp.c
@@ -2500,12 +2500,13 @@ static void parse_number(const char *p)
2500
if (t >= b)
2501
tcc_error("invalid digit");
2502
n = n * b + t;
2503
- if (!ov)
+ if (!ov) {
2504
/* detect overflow */
2505
if (n1 >= 0x1000000000000000ULL && n / b != n1)
2506
ov = 1;
2507
else
2508
n1 = n;
2509
+ }
2510
}
2511
2512
/* Determine the characteristics (unsigned and/or 64bit) the type of
0 commit comments