Set errno in strtol family of functions (#110)

This commit is contained in:
Alison Winters 2021-03-07 14:18:08 -08:00 committed by GitHub
parent b16b332539
commit f5da4efcaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 13 deletions

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;