Use standardised signed version of word type from base.h

This commit is contained in:
2023-10-31 21:24:26 +00:00
parent 095e62b86f
commit 7817b5acc9
2 changed files with 3 additions and 5 deletions

View File

@@ -79,9 +79,7 @@ perr_t parse_word(token_t token, word *ret)
if (is_negative)
{
char *end = NULL;
// TODO: Make a standardised type of the same size as word in
// base.h
int64_t i = strtoll(token.str, &end, 0);
s_word i = strtoll(token.str, &end, 0);
if (!(end && end[0] == '\0'))
return PERR_NOT_A_NUMBER;
else if (errno == ERANGE)