arm: fix more MSVC warnings

This commit is contained in:
Nguyen Anh Quynh 2019-03-16 15:40:38 +08:00
parent 7299cc21e4
commit f56ed8d79d
2 changed files with 3 additions and 3 deletions

View File

@ -1721,8 +1721,8 @@ static void printAddrMode5FP16Operand(MCInst *MI, unsigned OpNum, SStream *O,
{
MCOperand *MO1 = MCInst_getOperand(MI, OpNum);
MCOperand *MO2 = MCInst_getOperand(MI, OpNum + 1);
unsigned ImmOffs = (unsigned)getAM5FP16Offset(MCOperand_getImm(MO2));
unsigned Op = (unsigned)getAM5FP16Op(MCOperand_getImm(MO2));
unsigned ImmOffs = getAM5FP16Offset((unsigned)MCOperand_getImm(MO2));
unsigned Op = getAM5FP16Op((unsigned)MCOperand_getImm(MO2));
if (!MCOperand_isReg(MO1)) { // FIXME: This is for CP entries, but isn't right.
printOperand(MI, OpNum, O);

View File

@ -954,7 +954,7 @@ void ARM_reg_access(const cs_insn *insn,
unsigned int binsearch_IndexType(const struct IndexType *index, size_t size, uint16_t encoding)
{
// binary searching since the index is sorted in encoding order
unsigned int left, right, m;
size_t left, right, m;
right = size - 1;