From ac6a95f4844a714d4693565a5c42903cb4d0ba81 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 28 Jan 2019 12:38:57 +0800 Subject: [PATCH] cstool: print mem.scale as int, not uint. bug reported by @hardtobelieve --- cstool/cstool_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cstool/cstool_arm.c b/cstool/cstool_arm.c index 20afd08d..4fc719a4 100644 --- a/cstool/cstool_arm.c +++ b/cstool/cstool_arm.c @@ -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)