[pypy-svn] pypy jitypes2: translation fix

antocuni commits-noreply at bitbucket.org
Fri Dec 24 09:18:27 CET 2010


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40221:cee175928c20
Date: 2010-12-24 09:18 +0100
http://bitbucket.org/pypy/pypy/changeset/cee175928c20/

Log:	translation 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
@@ -174,7 +174,7 @@
             # special case
             uintres = call(argchain, rffi.ULONG)
             return space.wrap(uintres)
-        elif restype is libffi.types.pointer or restype.c_type == libffi.FFI_TYPE_STRUCT:
+        elif restype is libffi.types.pointer or libffi.types.is_struct(restype):
             uintres = rffi.cast(rffi.ULONG, call(argchain, rffi.VOIDP))
             return space.wrap(uintres)
         elif restype is libffi.types.uint:


More information about the Pypy-commit mailing list