aboutsummaryrefslogtreecommitdiff
path: root/asm/parser.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-31 21:24:26 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-31 21:24:50 +0000
commit7817b5acc9ff82038e10fb8dee987195bfa8e6e0 (patch)
treed1014e9695f98b30b78e31b5822f47613b2114a8 /asm/parser.c
parent095e62b86fbd9568ddaae04aa8d15888b8487983 (diff)
downloadovm-7817b5acc9ff82038e10fb8dee987195bfa8e6e0.tar.gz
ovm-7817b5acc9ff82038e10fb8dee987195bfa8e6e0.tar.bz2
ovm-7817b5acc9ff82038e10fb8dee987195bfa8e6e0.zip
Use standardised signed version of word type from base.h
Diffstat (limited to 'asm/parser.c')
-rw-r--r--asm/parser.c4
1 files changed, 1 insertions, 3 deletions
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)