Author: Armin Rigo <ar...@tunes.org> Branch: ffi-backend Changeset: r55909:e36330e9f368 Date: 2012-07-04 04:54 +0200 http://bitbucket.org/pypy/pypy/changeset/e36330e9f368/
Log: Fix diff --git a/pypy/module/_cffi_backend/test/test_c.py b/pypy/module/_cffi_backend/test/test_c.py --- a/pypy/module/_cffi_backend/test/test_c.py +++ b/pypy/module/_cffi_backend/test/test_c.py @@ -34,7 +34,7 @@ def testfunc6(p_int): testfunc6_static.value = p_int[0] - 1000 ptr = ctypes.pointer(testfunc6_static) - return ctypes.cast(ptr, ctypes.c_void_p) + return ctypes.cast(ptr, ctypes.c_void_p).value def prepfunc(func, argtypes, restype): c_func = ctypes.CFUNCTYPE(restype, *argtypes)(func) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit