Skip to content

Commit

Permalink
Fixed #49.
Browse files Browse the repository at this point in the history
  • Loading branch information
dloscutoff committed Mar 19, 2022
1 parent 7c2905f commit 0d36cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ def INCLRANGETO(self, rhs):
def INTDIV(self, lhs, rhs):
if isinstance(lhs, Scalar) and isinstance(rhs, Scalar):
try:
result = int(lhs.toNumber() / rhs.toNumber())
result = int(lhs.toNumber() // rhs.toNumber())
return Scalar(result)
except ZeroDivisionError:
self.err.warn("Dividing by zero")
Expand Down

0 comments on commit 0d36cd1

Please sign in to comment.