summaryrefslogtreecommitdiff
path: root/tokenizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tokenizer.c')
-rw-r--r--tokenizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokenizer.c b/tokenizer.c
index 8807b33..520edd0 100644
--- a/tokenizer.c
+++ b/tokenizer.c
@@ -484,7 +484,7 @@ static bool tokenize_string(Tokenizer *t, char *str) {
}
switch (n.kind) {
case NUM_LITERAL_INT:
- if (n.intval > ULLONG_MAX / (UInteger)base ||
+ if (n.intval > UINTEGER_MAX / (UInteger)base ||
n.intval * (UInteger)base > ULLONG_MAX - (UInteger)digit) {
/* too big! */
tokenization_err(t, "Number too big to fit in a numeric literal.");