[pypy-commit] pypy reflex-support: still has to use longs for CINT backend, even with protection against using reflection info during translation ...

wlav noreply at buildbot.pypy.org
Fri Feb 24 18:24:28 CET 2012


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r52866:208d3205efc1
Date: 2012-02-24 00:20 -0800
http://bitbucket.org/pypy/pypy/changeset/208d3205efc1/

Log:	still has to use longs for CINT backend, even with protection
	against using reflection info during translation ...

diff --git a/pypy/module/cppyy/capi/__init__.py b/pypy/module/cppyy/capi/__init__.py
--- a/pypy/module/cppyy/capi/__init__.py
+++ b/pypy/module/cppyy/capi/__init__.py
@@ -6,8 +6,8 @@
 
 identify = backend.identify
 
-_C_OPAQUE_PTR = rffi.VOIDP
-_C_OPAQUE_NULL = lltype.nullptr(_C_OPAQUE_PTR.TO)
+_C_OPAQUE_PTR = rffi.LONG
+_C_OPAQUE_NULL = lltype.nullptr(rffi.LONGP.TO)# ALT: _C_OPAQUE_PTR.TO
 
 C_TYPEHANDLE = _C_OPAQUE_PTR
 C_NULL_TYPEHANDLE = rffi.cast(C_TYPEHANDLE, _C_OPAQUE_NULL)


More information about the pypy-commit mailing list