diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 17:55:54 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 17:55:54 +0000 |
commit | 57e692327963dabac9a1fcfda25548644a3a56cf (patch) | |
tree | 4e54fcdca8ccc88226ccf6107561cfac7439c547 /asm/parser.c | |
parent | 809cc1b26a42e0690eaa56dafb7fc609ab353737 (diff) | |
download | ovm-57e692327963dabac9a1fcfda25548644a3a56cf.tar.gz ovm-57e692327963dabac9a1fcfda25548644a3a56cf.tar.bz2 ovm-57e692327963dabac9a1fcfda25548644a3a56cf.zip |
Fixed bug where comparators wouldn't be parsed correctly
This is because comparators may apply to signed types, so I need to
use the right parsing function.
Diffstat (limited to 'asm/parser.c')
-rw-r--r-- | asm/parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asm/parser.c b/asm/parser.c index 31cf36c..a6ddd86 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -239,16 +239,16 @@ perr_t parse_next_inst(token_stream_t *stream, inst_t *ret) return parse_utype_inst(stream, ret); case TOKEN_LT: ret->opcode = OP_LT_BYTE; - return parse_utype_inst(stream, ret); + return parse_type_inst(stream, ret); case TOKEN_LTE: ret->opcode = OP_LTE_BYTE; - return parse_utype_inst(stream, ret); + return parse_type_inst(stream, ret); case TOKEN_GT: ret->opcode = OP_GT_BYTE; - return parse_utype_inst(stream, ret); + return parse_type_inst(stream, ret); case TOKEN_GTE: ret->opcode = OP_GTE_BYTE; - return parse_utype_inst(stream, ret); + return parse_type_inst(stream, ret); case TOKEN_PLUS: ret->opcode = OP_PLUS_BYTE; return parse_utype_inst(stream, ret); |