From: Luke Kenneth Casson Leighton Date: Fri, 19 Jun 2020 10:36:12 +0000 (+0100) Subject: div needs to be floordiv X-Git-Tag: div_pipeline~320 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a01e4c458a964c44d1007ec09cdd17699c67b81;p=soc.git div needs to be floordiv --- 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,