[pypy-commit] pypy improve-rbigint: Disable an assert, we can't do this check in rpython. Fix lib-python crashes (tested locally)

Stian Andreassen noreply at buildbot.pypy.org
Thu Aug 23 19:53:26 CEST 2012


Author: Stian Andreassen
Branch: improve-rbigint
Changeset: r56828:41a49c1c5442
Date: 2012-08-23 19:52 +0200
http://bitbucket.org/pypy/pypy/changeset/41a49c1c5442/

Log:	Disable an assert, we can't do this check in rpython. Fix lib-python
	crashes (tested locally)

diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -1582,7 +1582,7 @@
             q -= 1
             r += wm1
             
-        assert q < MASK
+        #assert q <= MASK+1, We need to compare to BASE <=, but ehm, it gives a buildin long error. So we ignore this.
         
         # subtract q*w0[0:size_w] from vk[0:size_w+1]
         zhi = 0


More information about the pypy-commit mailing list