Apply #2360 to next (#2361)

This commit is contained in:
Rot127 2024-05-18 06:32:01 +00:00 committed by GitHub
parent 5f11d3c1fe
commit fe60b1371c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 // 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 max_id = insns[size - 1].id;
unsigned short i; unsigned int i;
unsigned short *cache = unsigned short *cache =
(unsigned short *)cs_mem_calloc(max_id + 1, sizeof(*cache)); (unsigned short *)cs_mem_calloc(max_id + 1, sizeof(*cache));