Author: Christian Tismer <[email protected]>
Branch: win64_gborg
Changeset: r48856:dc81624b6a84
Date: 2011-11-07 00:40 +0100
http://bitbucket.org/pypy/pypy/changeset/dc81624b6a84/

Log:    got one of four things in test_typed.py to run. It is rffi related,
        the others probably as well. I want to add more structure to PyPy.
        Things like rffi should not be compatible with the target system at
        all. I would like to introduce explicit conversions, for every type.
        That would need some effort, but make an 'up-lifting' to a more OS
        independent build system much easier.

        Will elaborate on this, tomorrow.

diff --git a/pypy/rlib/rdtoa.py b/pypy/rlib/rdtoa.py
--- a/pypy/rlib/rdtoa.py
+++ b/pypy/rlib/rdtoa.py
@@ -58,8 +58,8 @@
         try:
             result = dg_strtod(ll_input, end_ptr)
 
-            endpos = (rffi.cast(rffi.LONG, end_ptr[0]) -
-                      rffi.cast(rffi.LONG, ll_input))
+            endpos = (rffi.cast(lltype.Signed, end_ptr[0]) -
+                      rffi.cast(lltype.Signed, ll_input))
 
             if endpos == 0 or endpos < len(input):
                 raise ValueError("invalid input at position %d" % (endpos,))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to