Commits

Carl Friedrich Bolz committed 18f4487

better way to check for overflow

  • Participants
  • Parent commits 7273e92
  • Branches type-tag-terms

Comments (0)

Files changed (1)

File prolog/interpreter/shape.py

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