[pypy-svn] pypy default: Fix the test. Phew, a lot of work just to find where it was.

arigo commits-noreply at bitbucket.org
Wed Feb 9 16:50:44 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41741:d8158876f71f
Date: 2011-02-09 16:50 +0100
http://bitbucket.org/pypy/pypy/changeset/d8158876f71f/

Log:	Fix the test. Phew, a lot of work just to find where it was.

diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -1517,7 +1517,7 @@
 
     # Round by remembering a modified copy of the low digit of x
     mask = 1 << (extra_bits - 1)
-    low = x.digit(0) | inexact
+    low = x.udigit(0) | inexact
     if (low & mask) != 0 and (low & (3*mask-1)) != 0:
         low += mask
     x_digit_0 = low & ~(mask-1)


More information about the Pypy-commit mailing list