From b2840c041575ba942acc239fa3f09dcad91d2201 Mon Sep 17 00:00:00 2001 From: Alison Winters Date: Sun, 7 Mar 2021 20:13:01 +0000 Subject: [PATCH] use strtoul for unsigned conversion in chibi tokenizing --- third_party/chibicc/as.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/chibicc/as.c b/third_party/chibicc/as.c index ce33af3b4..8d59d04a6 100644 --- a/third_party/chibicc/as.c +++ b/third_party/chibicc/as.c @@ -782,7 +782,7 @@ static void Tokenize(struct As *a, int path) { a->things.p[a->things.n - 1].t = TT_FLOAT; } else { APPEND(a->ints); - a->ints.p[a->ints.n - 1] = strtol(p, NULL, 0); + a->ints.p[a->ints.n - 1] = strtoul(p, NULL, 0); a->things.p[a->things.n - 1].i = a->ints.n - 1; if (p[i] == 'f' || p[i] == 'F') { a->things.p[a->things.n - 1].t = TT_FORWARD;