From 7817b5acc9ff82038e10fb8dee987195bfa8e6e0 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 31 Oct 2023 21:24:26 +0000 Subject: Use standardised signed version of word type from base.h --- asm/parser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'asm/parser.c') diff --git a/asm/parser.c b/asm/parser.c index 9d8317d..62f36d8 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -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) -- cgit v1.2.3-13-gbd6f