From 24aadd1a8d87034c6d636c9f57f643f8288256cf Mon Sep 17 00:00:00 2001 From: serpilliere Date: Fri, 24 Apr 2015 19:32:48 +0200 Subject: Expression/modint: set arg to long to canonize repr --- miasm2/expression/modint.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'miasm2/expression/modint.py') 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): -- cgit 1.4.1