Skip to content

Commit 3a32d27

Browse files
committed
__div__ and __truediv__ are swapped.
1 parent 8fee1dd commit 3a32d27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veriloggen/thread/operator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ def getVeriloggenOp(op):
4747
ast.Add: '__add__',
4848
ast.Sub: '__sub__',
4949
ast.Mult: '__mul__',
50-
ast.Div: '__div__',
50+
ast.Div: '__truediv__',
5151
ast.Mod: '__mod__',
5252
ast.Pow: '__pow__',
5353
ast.LShift: '__lshift__',
5454
ast.RShift: '__rshift__',
5555
ast.BitOr: '__or__',
5656
ast.BitXor: '__xor__',
5757
ast.BitAnd: '__and__',
58-
ast.FloorDiv: '__truediv__',
58+
ast.FloorDiv: '__div__',
5959
ast.And: None,
6060
ast.Or: None,
6161
ast.Invert: '__invert__',

0 commit comments

Comments
 (0)