Commits

wlav committed 4ae8555

fix check: cif_descr is initialized to null ptr, not to None

  • Participants
  • Parent commits 7159a9b
  • Branches reflex-support

Comments (0)

Files changed (1)

pypy/module/cppyy/interp_cppyy.py

 
     @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')