use strtoul for unsigned conversion in chibi tokenizing

This commit is contained in:
Alison Winters 2021-03-07 20:13:01 +00:00
parent 9a2dd849c1
commit b2840c0415

View file

@ -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;