From 0d6fdcbd3456fec074c7c6ef5e5d776d2bbd91af Mon Sep 17 00:00:00 2001 From: Rot127 Date: Fri, 17 May 2024 06:57:47 -0500 Subject: [PATCH] Apply #2360 to next --- 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));