[pypy-commit] pypy ffi-backend: Fix
arigo
noreply at buildbot.pypy.org
Wed Jul 4 05:01:59 CEST 2012
Author: Armin Rigo <arigo at 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)
More information about the pypy-commit
mailing list