From fb15dc90c65cfe80f8f6d9731508c7d303dc8d9c Mon Sep 17 00:00:00 2001 From: sBubshait Date: Thu, 13 Jun 2024 19:20:02 +0100 Subject: [PATCH] Fix Bug in Parser for an error checking --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index c332bd6..33c7685 100644 --- a/src/parser.c +++ b/src/parser.c @@ -289,7 +289,7 @@ void parseDPImmediate(a64inst_instruction *inst, char *tokens[], int tokensCount data->DPIOpType = a64inst_DPI_WIDEMOV; data->processOp = indexStringIn(tokens[0], WIDE_MOV_OPCODES, 3); data->processOpData.wideMovData.immediate = getOperandNumber(tokens[2]); - if (tokensCount >= 3) { + if (tokensCount >= 4) { data->processOpData.wideMovData.shiftScalar = getOperandNumber(tokens[3]); }