arm: fix some warnings reported by MSVC

test2
Nguyen Anh Quynh 10 years ago
parent e84d2cd523
commit 4b68d9505e
  1. 2
      arch/ARM/ARMInstPrinter.c
  2. 2
      suite/arm/test_arm_regression.c

@ -1058,7 +1058,7 @@ static void printAM3PreOrOffsetIndexOp(MCInst *MI, unsigned Op, SStream *O,
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)ImmOffs;
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].subtracted = true;
} else
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)-ImmOffs;
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = -(int)ImmOffs;
}
SStream_concat0(O, "]");

@ -24,7 +24,7 @@ struct platform {
int syntax;
};
static char* hex_string(unsigned char *str, int len)
static char *hex_string(unsigned char *str, size_t len)
{
// returns a malloced string that has the hex version of the string in it
// null if failed to malloc

Loading…
Cancel
Save