diff options
| author | Rusty Wagner <rusty@vector35.com> | 2018-08-30 22:13:33 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2018-08-30 22:13:33 -0400 |
| commit | ef04e9ae0483574531542223aed3eb1768a01db9 (patch) | |
| tree | a69c36870bf73b701cb62cbeafba200627115d28 /python/mediumlevelil.py | |
| parent | acf28440dc4e8d805a057b6271a73e0d4e8c9e4f (diff) | |
Fix signed constants in Python IL
Diffstat (limited to 'python/mediumlevelil.py')
| -rw-r--r-- | python/mediumlevelil.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index c7b21aa9..d8347ebf 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -230,6 +230,7 @@ class MediumLevelILInstruction(object): name, operand_type = operand if operand_type == "int": value = instr.operands[i] + value = (value & ((1 << 63) - 1)) - (value & (1 << 63)) elif operand_type == "float": if instr.size == 4: value = struct.unpack("f", struct.pack("I", instr.operands[i] & 0xffffffff))[0] |
