Author: Antonio Cuni <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit