aboutsummaryrefslogtreecommitdiff
path: root/arch/SystemZ/SystemZInstPrinter.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/SystemZ/SystemZInstPrinter.c')
-rw-r--r--arch/SystemZ/SystemZInstPrinter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/SystemZ/SystemZInstPrinter.c b/arch/SystemZ/SystemZInstPrinter.c
index b2f489b9..b722a41b 100644
--- a/arch/SystemZ/SystemZInstPrinter.c
+++ b/arch/SystemZ/SystemZInstPrinter.c
@@ -386,7 +386,7 @@ static void printBDRAddrOperand(MCInst *MI, int OpNum, SStream *O)
SStream_concat(O, "%"PRIu64, Disp);
SStream_concat0(O, "(");
- SStream_concat(O, "%%%s", getRegisterName(Length));
+ SStream_concat(O, "%%%s", getRegisterName((unsigned int)Length));
if (Base)
SStream_concat(O, ", %%%s", getRegisterName(Base));
@@ -394,8 +394,8 @@ static void printBDRAddrOperand(MCInst *MI, int OpNum, SStream *O)
if (MI->csh->detail) {
MI->flat_insn->detail->sysz.operands[MI->flat_insn->detail->sysz.op_count].type = SYSZ_OP_MEM;
- MI->flat_insn->detail->sysz.operands[MI->flat_insn->detail->sysz.op_count].mem.base = (uint8_t)SystemZ_map_register(Base);
- MI->flat_insn->detail->sysz.operands[MI->flat_insn->detail->sysz.op_count].mem.length = (uint8_t)SystemZ_map_register(Length);
+ MI->flat_insn->detail->sysz.operands[MI->flat_insn->detail->sysz.op_count].mem.base = (uint8_t)SystemZ_map_register((unsigned int)Base);
+ MI->flat_insn->detail->sysz.operands[MI->flat_insn->detail->sysz.op_count].mem.length = (uint8_t)SystemZ_map_register((unsigned int)Length);
MI->flat_insn->detail->sysz.operands[MI->flat_insn->detail->sysz.op_count].mem.disp = (int64_t)Disp;
MI->flat_insn->detail->sysz.op_count++;
}