Author: Armin Rigo <[email protected]>
Branch: release-2.3.x
Changeset: r71568:837f6ad4dbdd
Date: 2014-05-18 10:51 +0200
http://bitbucket.org/pypy/pypy/changeset/837f6ad4dbdd/

Log:    Pfffff. This is enough to convince gcc 4.9 to produce correct code:
        do the "-" on the r_uint, not on the signed integer (because that
        might overflow). (grafted from
        3cf384e86ef7f0b1d78d54a37853f94a9bf74aaf)

diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -177,7 +177,7 @@
 
         if intval < 0:
             sign = -1
-            ival = r_uint(-intval)
+            ival = -r_uint(intval)
         elif intval > 0:
             sign = 1
             ival = r_uint(intval)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to