From d2da0b87e09f1be6366f16dd8dd55cb53026bae8 Mon Sep 17 00:00:00 2001 From: Ajax Date: Wed, 15 Feb 2017 10:45:25 +0100 Subject: Right operator of a>> is unsigned --- miasm2/expression/simplifications_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miasm2/expression') diff --git a/miasm2/expression/simplifications_common.py b/miasm2/expression/simplifications_common.py index 4bd35390..503a0e77 100644 --- a/miasm2/expression/simplifications_common.py +++ b/miasm2/expression/simplifications_common.py @@ -44,7 +44,7 @@ def simp_cst_propagation(e_s, e): o = i1.arg << i2.arg elif op == 'a>>': x1 = mod_size2int[i1.arg.size](i1.arg) - x2 = mod_size2int[i2.arg.size](i2.arg) + x2 = mod_size2uint[i2.arg.size](i2.arg) o = mod_size2uint[i1.arg.size](x1 >> x2) elif op == '>>>': o = (i1.arg >> (i2.arg % i2.size) | -- cgit 1.4.1