Fix negative rpnesil mask issue

This commit is contained in:
pancake 2014-10-02 11:07:04 +02:00
parent 18e6fda463
commit b25af56871

View File

@ -12,7 +12,7 @@ static int esil_reg_read (RAnalEsil *esil, const char *regname, ut64 *num);
/* Returns the number that has bits+1 least significant bits set. */
static inline ut64 mask (int bits) {
return (((ut64)2) << bits) - 1;
return (ut64)(((st64)2) << bits) - 1;
}
/* magic limit */