div needs to be floordiv
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Jun 2020 10:36:12 +0000 (11:36 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Jun 2020 10:36:12 +0000 (11:36 +0100)
src/soc/decoder/pseudo/parser.py

index ed63184dbeb4a233e2617efea9e8e6317844f786..23d61fefc1dbf687b77a1777f3c86a75e3f0c1aa 100644 (file)
@@ -118,7 +118,7 @@ binary_ops = {
     "+": ast.Add(),
     "-": ast.Sub(),
     "*": ast.Mult(),
-    "/": ast.Div(),
+    "/": ast.FloorDiv(),
     "%": ast.Mod(),
     "<=": make_le_compare,
     ">=": make_ge_compare,