Skip to content

Commit

Permalink
cstool: print mem.scale as int, not uint. bug reported by @HarDToBelieve
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Jan 28, 2019
1 parent 6f4fcff commit ac6a95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cstool/cstool_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void print_insn_detail_arm(csh handle, cs_insn *ins)
printf("\t\t\toperands[%u].mem.index: REG = %s\n",
i, cs_reg_name(handle, op->mem.index));
if (op->mem.scale != 1)
printf("\t\t\toperands[%u].mem.scale: %u\n", i, op->mem.scale);
printf("\t\t\toperands[%u].mem.scale: %d\n", i, op->mem.scale);
if (op->mem.disp != 0)
printf("\t\t\toperands[%u].mem.disp: 0x%x\n", i, op->mem.disp);
if (op->mem.lshift != 0)
Expand Down

0 comments on commit ac6a95f

Please sign in to comment.