mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
fix undefined LONG_LONG_MAX compilation error
This commit is contained in:
1 parent
2dc4ac0e21
commit
633b01de23
1 file changed
+1
-1
+1
-1
@@ -438,7 +438,7 @@ static void parse_number_literal(ParseContext *pc, Token *token, AstNodeNumberLi
|
||||
unsigned long long specified_exponent = parse_int_digits(pc, exponent_start, exponent_end,
|
||||
10, -1, &num_lit->overflow);
|
||||
// TODO: this check is a little silly
|
||||
if (specified_exponent >= LONG_LONG_MAX) {
|
||||
if (specified_exponent >= LLONG_MAX) {
|
||||
num_lit->overflow = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user