Skip to content

Commit

Permalink
Merge pull request #2360 from trufae/narrow-loop
Browse files Browse the repository at this point in the history
Fix comparison using narrow types in loop condition
  • Loading branch information
Rot127 committed May 17, 2024
2 parents 11a2ea2 + 1883e9e commit 3f87ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,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));
Expand Down

0 comments on commit 3f87ce0

Please sign in to comment.