diff options
| author | Ajax <commial@gmail.com> | 2017-01-13 17:42:29 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-01-13 17:42:29 +0100 |
| commit | a0b45744e254b438b258cfd3a17a7870a638d78c (patch) | |
| tree | ae64db2f016c4e83ba30bdb8dd8a746bb521bbeb /miasm2/expression/expression.py | |
| parent | 632f95b8ce745ef77ecb9f46054c1964ddc59e3e (diff) | |
| download | miasm-a0b45744e254b438b258cfd3a17a7870a638d78c.tar.gz miasm-a0b45744e254b438b258cfd3a17a7870a638d78c.zip | |
Fix ExprInt repr to include size
Diffstat (limited to 'miasm2/expression/expression.py')
| -rw-r--r-- | miasm2/expression/expression.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/expression/expression.py b/miasm2/expression/expression.py index 0001dc24..ef7fa1f6 100644 --- a/miasm2/expression/expression.py +++ b/miasm2/expression/expression.py @@ -448,7 +448,8 @@ class ExprInt(Expr): return hash((EXPRINT, self.__arg, self.__size)) def _exprrepr(self): - return "%s(0x%X)" % (self.__class__.__name__, self.__get_int()) + return "%s(0x%X, %d)" % (self.__class__.__name__, self.__get_int(), + self.__size) def __contains__(self, e): return self == e |