Fix a few warnings

This commit is contained in:
jvoisin 2016-09-13 20:35:15 +02:00
parent ae511391e2
commit 6b56489eaf
3 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@
#define REGID64(x) insn->detail->arm64.operands[x].reg
#define REGID(x) insn->detail->arm.operands[x].reg
#define IMM(x) (ut32)(insn->detail->arm.operands[x].imm)
#define IMM64(x) insn->detail->arm64.operands[x].imm
#define MEMBASE(x) r_str_get (cs_reg_name(*handle, insn->detail->arm.operands[x].mem.base))
#define MEMBASE64(x) r_str_get (cs_reg_name(*handle, insn->detail->arm64.operands[x].mem.base))
#define REGBASE(x) insn->detail->arm.operands[x].mem.base

View File

@ -22,7 +22,7 @@
#define esilprintf(op, fmt, arg...) r_strbuf_setf (&op->esil, fmt, ##arg)
#define INSOP(n) insn->detail->x86.operands[n]
#define INSOPS insn->detail->x86.op_count
#define ISIMM(x) insn->detail->x86.operands[x].type == ARM_OP_IMM
#define ISIMM(x) insn->detail->x86.operands[x].type == X86_OP_IMM
struct Getarg {
csh handle;

View File

@ -278,7 +278,7 @@ R_API int r_utf8_strlen (const ut8 *str) {
}
R_API int r_isprint (const RRune c) {
const last = nonprintable_ranges_count;
const int last = nonprintable_ranges_count;
int low, hi, mid;
low = 0;