diff options
| author | serpilliere <fabrice.desclaux@cea.fr> | 2015-04-24 19:32:48 +0200 |
|---|---|---|
| committer | serpilliere <fabrice.desclaux@cea.fr> | 2015-04-25 13:06:59 +0200 |
| commit | 24aadd1a8d87034c6d636c9f57f643f8288256cf (patch) | |
| tree | 3aa843c05617f9e19755fc35d9fb00a9ff33f2bb | |
| parent | 4869a8b9d53aac5a448000a2616d427a2e338a9f (diff) | |
| download | miasm-24aadd1a8d87034c6d636c9f57f643f8288256cf.tar.gz miasm-24aadd1a8d87034c6d636c9f57f643f8288256cf.zip | |
Expression/modint: set arg to long to canonize repr
| -rw-r--r-- | miasm2/expression/modint.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/miasm2/expression/modint.py b/miasm2/expression/modint.py index ffe1574c..8bad5ccb 100644 --- a/miasm2/expression/modint.py +++ b/miasm2/expression/modint.py @@ -4,9 +4,7 @@ class moduint(object): def __init__(self, arg): - if isinstance(arg, moduint): - arg = arg.arg - self.arg = arg % self.__class__.limit + self.arg = long(arg) % self.__class__.limit assert(self.arg >= 0 and self.arg < self.__class__.limit) def __repr__(self): |