diff options
| author | Serge Paquet <srgpqt@gmail.com> | 2016-02-11 22:13:54 -0500 |
|---|---|---|
| committer | Serge Paquet <srgpqt@gmail.com> | 2016-02-11 22:13:54 -0500 |
| commit | 633b01de23fd945a2573cccd15f24efc876881ef (patch) | |
| tree | 48a4db254a4c82b9b09bc809ae109eaf1642e2e9 /src | |
| parent | 2dc4ac0e21939c440135131212ac564197c61e30 (diff) | |
| download | zig-633b01de23fd945a2573cccd15f24efc876881ef.tar.gz zig-633b01de23fd945a2573cccd15f24efc876881ef.zip | |
fix undefined LONG_LONG_MAX compilation error
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index b2da82eec9..5d22105bff 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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; } |
