[pypy-commit] pypy default: rpython fix

antocuni noreply at buildbot.pypy.org
Wed Jul 27 18:55:29 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r46024:890f5790aaa4
Date: 2011-07-27 18:53 +0200
http://bitbucket.org/pypy/pypy/changeset/890f5790aaa4/

Log:	rpython fix

diff --git a/pypy/module/_ffi/interp_ffi.py b/pypy/module/_ffi/interp_ffi.py
--- a/pypy/module/_ffi/interp_ffi.py
+++ b/pypy/module/_ffi/interp_ffi.py
@@ -243,7 +243,7 @@
         if w_argtype.is_char_p() and w_type is space.w_str:
             strval = space.str_w(w_arg)
             buf = rffi.str2charp(strval)
-            to_free.append(buf)
+            to_free.append(rffi.cast(rffi.VOIDP, buf))
             addr = rffi.cast(rffi.ULONG, buf)
             argchain.arg(addr)
             return True
@@ -251,7 +251,7 @@
                                            w_type is space.w_unicode):
             unicodeval = space.unicode_w(w_arg)
             buf = rffi.unicode2wcharp(unicodeval)
-            to_free.append(buf)
+            to_free.append(rffi.cast(rffi.VOIDP, buf))
             addr = rffi.cast(rffi.ULONG, buf)
             argchain.arg(addr)
             return True


More information about the pypy-commit mailing list