[pypy-svn] r36325 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Tue Jan 9 11:33:45 CET 2007


Author: arigo
Date: Tue Jan  9 11:33:44 2007
New Revision: 36325

Modified:
   pypy/dist/pypy/annotation/unaryop.py
Log:
A less confusing error message.


Modified: pypy/dist/pypy/annotation/unaryop.py
==============================================================================
--- pypy/dist/pypy/annotation/unaryop.py	(original)
+++ pypy/dist/pypy/annotation/unaryop.py	Tue Jan  9 11:33:44 2007
@@ -641,7 +641,8 @@
         args_s, kwds_s = args.unpack()
         if kwds_s:
             raise Exception("keyword arguments to call to a low-level fn ptr")
-        llargs = [annotation_to_lltype(s_arg)._defl() for s_arg in args_s]
+        info = 'argument to ll function pointer call'
+        llargs = [annotation_to_lltype(s_arg,info)._defl() for s_arg in args_s]
         v = p.ll_ptrtype._example()(*llargs)
         return ll_to_annotation(v)
 



More information about the Pypy-commit mailing list