aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRot127 <45763064+Rot127@users.noreply.github.com>2024-05-18 06:32:01 +0000
committerGitHub <noreply@github.com>2024-05-18 14:32:01 +0800
commitfe60b1371c109288278faa06b7efb545b18ed45d (patch)
treece7ae36dcc986703f6ad5fb5437bd394e15d53d6
parent5f11d3c1fec756cf04bfaf6bded9e5c5ccc3adc6 (diff)
downloadcapstone-upstream-next.tar.gz
Apply #2360 to next (#2361)upstream-next
-rw-r--r--Mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mapping.c b/Mapping.c
index 580db844..5483bee6 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));