Fix -1 calculation in rpnesil.c

It calculated bit-2 mod 0x40, because 0x3e == 0x40-2.
This commit is contained in:
Jonathan Neuschäfer 2014-09-16 22:11:56 +02:00 committed by condret
parent de61bfda4c
commit a6a062a7a1

View File

@ -191,7 +191,7 @@ static int internal_esil_reg_write(RAnalEsil *esil, const char *regname, ut64 nu
}
static int esil_internal_borrow_check (RAnalEsil *esil, ut8 bit) {
bit = ((bit & 0x3f) + 0x3e) & 0x3f; //safer-sex version of -1
bit = ((bit & 0x3f) + 0x3f) & 0x3f; //safer-sex version of -1
return ((esil->old & masks[bit]) < (esil->cur & masks[bit]));
}