Author: Manuel Jacob
Branch: 
Changeset: r68866:70df1594c35f
Date: 2014-01-23 18:43 +0100
http://bitbucket.org/pypy/pypy/changeset/70df1594c35f/

Log:    Fix the test added in ae05315ebb9c.

diff --git a/rpython/rtyper/raisingops.py b/rpython/rtyper/raisingops.py
--- a/rpython/rtyper/raisingops.py
+++ b/rpython/rtyper/raisingops.py
@@ -87,7 +87,7 @@
         if ((r^(x)) >= 0 || (r^(y)) >= 0); \
         else FAIL_OVF(err, "integer addition")
     '''
-    r = x + y
+    r = intmask(r_uint(x) + r_uint(y))
     if r^x >= 0 or r^y >= 0:
         return r
     else:
@@ -99,7 +99,7 @@
     if (r >= (x)); \
     else FAIL_OVF("integer addition")
     '''
-    r = x + y
+    r = intmask(r_uint(x) + r_uint(y))
     if r >= x:
         return r
     else:
@@ -111,7 +111,7 @@
         if ((r^(x)) >= 0 || (r^~(y)) >= 0); \
         else FAIL_OVF(err, "integer subtraction")
     '''
-    r = x - y
+    r = intmask(r_uint(x) - r_uint(y))
     if r^x >= 0 or r^~y >= 0:
         return r
     else:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to