From 8a01e4c458a964c44d1007ec09cdd17699c67b81 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 19 Jun 2020 11:36:12 +0100 Subject: [PATCH] div needs to be floordiv --- src/soc/decoder/pseudo/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/decoder/pseudo/parser.py b/src/soc/decoder/pseudo/parser.py index ed63184d..23d61fef 100644 --- a/src/soc/decoder/pseudo/parser.py +++ b/src/soc/decoder/pseudo/parser.py @@ -118,7 +118,7 @@ binary_ops = { "+": ast.Add(), "-": ast.Sub(), "*": ast.Mult(), - "/": ast.Div(), + "/": ast.FloorDiv(), "%": ast.Mod(), "<=": make_le_compare, ">=": make_ge_compare, -- 2.30.2