mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-15 01:10:01 +00:00
Fix -1 calculation in rpnesil.c
It calculated bit-2 mod 0x40, because 0x3e == 0x40-2.
This commit is contained in:
parent
de61bfda4c
commit
a6a062a7a1
@ -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]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user