Commits

Carl Friedrich Bolz committed 18f4487

better way to check for overflow

Comments (0)

Files changed (1)

prolog/interpreter/shape.py

     val = obj.num
     # bit sucky
     try:
-        rarithmetic.ovfcheck(val + val)
+        rerased.erase_int(val)
     except OverflowError:
         return False
     return True