mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-29 16:18:43 +08:00
Fix warning
This commit is contained in:
parent
169628a6ab
commit
7b92d2dcd2
3
tccpp.c
3
tccpp.c
@ -2500,12 +2500,13 @@ static void parse_number(const char *p)
|
|||||||
if (t >= b)
|
if (t >= b)
|
||||||
tcc_error("invalid digit");
|
tcc_error("invalid digit");
|
||||||
n = n * b + t;
|
n = n * b + t;
|
||||||
if (!ov)
|
if (!ov) {
|
||||||
/* detect overflow */
|
/* detect overflow */
|
||||||
if (n1 >= 0x1000000000000000ULL && n / b != n1)
|
if (n1 >= 0x1000000000000000ULL && n / b != n1)
|
||||||
ov = 1;
|
ov = 1;
|
||||||
else
|
else
|
||||||
n1 = n;
|
n1 = n;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Determine the characteristics (unsigned and/or 64bit) the type of
|
/* Determine the characteristics (unsigned and/or 64bit) the type of
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user