From fe60b1371c109288278faa06b7efb545b18ed45d Mon Sep 17 00:00:00 2001 From: Rot127 <45763064+Rot127@users.noreply.github.com> Date: Sat, 18 May 2024 06:32:01 +0000 Subject: [PATCH] Apply #2360 to next (#2361) --- Mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mapping.c b/Mapping.c index 580db8445b..5483bee6ad 100644 --- a/Mapping.c +++ b/Mapping.c @@ -11,7 +11,7 @@ static unsigned short *make_id2insn(const insn_map *insns, unsigned int size) { // NOTE: assume that the max id is always put at the end of insns array unsigned short max_id = insns[size - 1].id; - unsigned short i; + unsigned int i; unsigned short *cache = (unsigned short *)cs_mem_calloc(max_id + 1, sizeof(*cache));