summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-09-01 19:15:12 -0700
committerOri Bernstein <ori@eigenstate.org>2020-09-01 19:15:47 -0700
commitd073dcc756169e572f54e65f05ba6b4ffaddcde3 (patch)
tree3321d25b8fba65581b207963b777a2091af94e77
parente0efab37a8bbd245e60c9adffaba4182aeb17c87 (diff)
downloadmc-d073dcc756169e572f54e65f05ba6b4ffaddcde3.tar.gz
infer: fix typo on range check
-rw-r--r--parse/infer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/infer.c b/parse/infer.c
index ffbcdeb..b5c3e62 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -2590,7 +2590,7 @@ checkrange(Node *n)
sval = n->lit.intval;
if (sval < svranges[t->type][0] || sval > svranges[t->type][1])
fatal(n, "literal value %lld out of range for type \"%s\"", sval, tystr(t));
- } else if ((t->type >= Tybyte && t->type <= Tyint64) || t->type == Tychar) {
+ } else if ((t->type >= Tybyte && t->type <= Tyuint64) || t->type == Tychar) {
uval = n->lit.intval;
if (uval < uvranges[t->type][0] || uval > uvranges[t->type][1])
fatal(n, "literal value %llu out of range for type \"%s\"", uval, tystr(t));