Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r63075:4ae8555bbb2c
Date: 2013-04-05 16:28 -0700
http://bitbucket.org/pypy/pypy/changeset/4ae8555bbb2c/
Log: fix check: cif_descr is initialized to null ptr, not to None
diff --git a/pypy/module/cppyy/interp_cppyy.py
b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -204,7 +204,7 @@
@jit.unroll_safe
def do_fast_call(self, cppthis, args_w, call_local):
- if self.cif_descr is None:
+ if self.cif_descr == lltype.nullptr(jit_libffi.CIF_DESCRIPTION):
raise FastCallNotPossible
cif_descr = self.cif_descr
buffer = lltype.malloc(rffi.CCHARP.TO, cif_descr.exchange_size,
flavor='raw')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit