From 57e692327963dabac9a1fcfda25548644a3a56cf Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 1 Nov 2023 17:55:54 +0000 Subject: 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. --- asm/parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'asm/parser.c') 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); -- cgit v1.2.3-13-gbd6f