Got rid of a warning

This commit is contained in:
Pierre Pronchery 2011-04-25 00:12:17 +00:00
parent 92979e4dac
commit 69dd017c53

View File

@ -477,7 +477,7 @@ static int _decode_print(Arch * arch, ArchInstructionCall * call)
ArchOperand * ao; ArchOperand * ao;
char const * name; char const * name;
if(arch->helper.seek(arch, call->offset, SEEK_SET) != call->offset) if(arch->helper.seek(arch, call->offset, SEEK_SET) < 0)
return -1; return -1;
printf("%8lx:", call->base + call->offset); printf("%8lx:", call->base + call->offset);
for(i = 0; i < call->size; i++) for(i = 0; i < call->size; i++)