[pypy-svn] r52853 - pypy/dist/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Sun Mar 23 02:22:01 CET 2008


Author: fijal
Date: Sun Mar 23 02:21:58 2008
New Revision: 52853

Modified:
   pypy/dist/pypy/rlib/libffi.py
Log:
add assert laying forever in my wc


Modified: pypy/dist/pypy/rlib/libffi.py
==============================================================================
--- pypy/dist/pypy/rlib/libffi.py	(original)
+++ pypy/dist/pypy/rlib/libffi.py	Sun Mar 23 02:21:58 2008
@@ -277,6 +277,7 @@
             "%d instead of %d" % (self.name, len(args_ll), len(self.argtypes)))
         ll_args = lltype.malloc(rffi.VOIDPP.TO, len(args_ll), flavor='raw')
         for i in range(len(args_ll)):
+            assert args_ll[i] # none should be NULL
             ll_args[i] = args_ll[i]
         c_ffi_call(self.ll_cif, self.funcsym, ll_result, ll_args)
         lltype.free(ll_args, flavor='raw')



More information about the Pypy-commit mailing list