[pypy-commit] pypy win64_gborg: removed the last bug from test_typed.py ehich is not related to rwin32.py buggyness

ctismer noreply at buildbot.pypy.org
Tue Nov 8 16:51:13 CET 2011


Author: Christian Tismer <tismer at stackless.com>
Branch: win64_gborg
Changeset: r48940:0ea921260824
Date: 2011-11-08 00:41 +0100
http://bitbucket.org/pypy/pypy/changeset/0ea921260824/

Log:	removed the last bug from test_typed.py ehich is not related to
	rwin32.py buggyness

diff --git a/pypy/rlib/rdtoa.py b/pypy/rlib/rdtoa.py
--- a/pypy/rlib/rdtoa.py
+++ b/pypy/rlib/rdtoa.py
@@ -244,8 +244,8 @@
                     # The only failure mode is no memory
                     raise MemoryError
                 try:
-                    buflen = (rffi.cast(rffi.LONG, end_ptr[0]) -
-                              rffi.cast(rffi.LONG, digits))
+                    buflen = (rffi.cast(lltype.Signed, end_ptr[0]) -
+                              rffi.cast(lltype.Signed, digits))
                     sign = rffi.cast(lltype.Signed, sign_ptr[0])
 
                     # Handle nan and inf


More information about the pypy-commit mailing list