More overflow test fixes.
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 8 Nov 2012 02:24:35 +0000 (18:24 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 8 Nov 2012 02:24:35 +0000 (18:24 -0800)
tests/run/overflow_check.pxi

index de9c621..e28ffde 100644 (file)
@@ -51,10 +51,10 @@ def run_test(func, op):
             check(func, op, min_value_ + 1, 2 - offset)
 
     for offset in range(9):
-        check(func, op, max_value_ / 2, offset)
-        check(func, op, min_value_ / 3, offset)
-        check(func, op, max_value_ / 4, offset)
-        check(func, op, min_value_ / 5, offset)
+        check(func, op, max_value_ / <INT>2, offset)
+        check(func, op, min_value_ / <INT>3, offset)
+        check(func, op, max_value_ / <INT>4, offset)
+        check(func, op, min_value_ / <INT>5, offset)
         if is_signed_:
             check(func, op, max_value_ / 2, 4 - offset)
             check(func, op, min_value_ / 3, 4 - offset)