[pypy-commit] pypy reflex-support: fix check: cif_descr is initialized to null ptr, not to None

wlav noreply at buildbot.pypy.org
Sat Apr 6 01:29:06 CEST 2013


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
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')


More information about the pypy-commit mailing list