diff options
author | Rot127 <45763064+Rot127@users.noreply.github.com> | 2024-05-18 06:32:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-18 14:32:01 +0800 |
commit | fe60b1371c109288278faa06b7efb545b18ed45d (patch) | |
tree | ce7ae36dcc986703f6ad5fb5437bd394e15d53d6 | |
parent | 5f11d3c1fec756cf04bfaf6bded9e5c5ccc3adc6 (diff) | |
download | capstone-upstream-next.tar.gz |
Apply #2360 to next (#2361)upstream-next
-rw-r--r-- | Mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |