[pypy-svn] pypy jitypes2: one more rpython fix

antocuni commits-noreply at bitbucket.org
Thu Jan 13 14:19:18 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40643:f35a30316742
Date: 2011-01-13 14:15 +0100
http://bitbucket.org/pypy/pypy/changeset/f35a30316742/

Log:	one more 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
@@ -230,7 +230,7 @@
         elif w_restype.is_struct():
             w_datashape = w_restype.w_datashape
             assert isinstance(w_datashape, W_Structure)
-            ptrval = self.func.call(argchain, rffi.VOIDP, is_struct=True)
+            ptrval = self.func.call(argchain, rffi.ULONG, is_struct=True)
             return w_datashape.fromaddress(space, ptrval)
         elif w_restype.is_void():
             voidres = self.func.call(argchain, lltype.Void)


More information about the Pypy-commit mailing list