about summary refs log tree commit diff stats
path: root/miasm/expression/expression.py
diff options
context:
space:
mode:
authorwoni <81616747+W0ni@users.noreply.github.com>2024-08-19 20:50:18 +0200
committerwoni <81616747+W0ni@users.noreply.github.com>2024-08-19 20:55:10 +0200
commit0dfc5505348b2ca40e0d94be07e322ecf3c73c71 (patch)
treea11583cd3ed9c018439e872022bea6ac52800632 /miasm/expression/expression.py
parent1ba37c39b1fa70651a1c7748c5829656cd3e6dea (diff)
downloadfocaccia-miasm-0dfc5505348b2ca40e0d94be07e322ecf3c73c71.tar.gz
focaccia-miasm-0dfc5505348b2ca40e0d94be07e322ecf3c73c71.zip
fix expression division and add test
Diffstat (limited to 'miasm/expression/expression.py')
-rw-r--r--miasm/expression/expression.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/expression/expression.py b/miasm/expression/expression.py
index e5debb34..4b0bbe6b 100644
--- a/miasm/expression/expression.py
+++ b/miasm/expression/expression.py
@@ -568,11 +568,11 @@ class Expr(object):
     def __sub__(self, other):
         return ExprOp('+', self, ExprOp('-', other))
 
-    def __div__(self, other):
+    def __truediv__(self, other):
         return ExprOp('/', self, other)
 
     def __floordiv__(self, other):
-        return self.__div__(other)
+        return self.__truediv__(other)
 
     def __mod__(self, other):
         return ExprOp('%', self, other)