x86: fix a warning on Diet mode

v2
Nguyen Anh Quynh 11 years ago
parent 2f661e003f
commit 0150f06553
  1. 2
      arch/X86/X86Mapping.c

@ -41914,8 +41914,8 @@ bool X86_lockrep(MCInst *MI, SStream *O)
#endif #endif
break; break;
case 0xf2: // repne case 0xf2: // repne
#ifndef CAPSTONE_DIET // only care about memonic in standard (non-diet) mode
opcode = MCInst_getOpcode(MI); opcode = MCInst_getOpcode(MI);
#ifndef CAPSTONE_DIET // only care about memonic in standard (non-diet) mode
if (valid_rep(MI->csh, opcode)) { if (valid_rep(MI->csh, opcode)) {
prefix[c] = MI->x86_prefix[i]; prefix[c] = MI->x86_prefix[i];
c++; c++;

Loading…
Cancel
Save