[pypy-svn] r37052 - in pypy/dist/pypy: annotation rpython/lltypesystem

arigo at codespeak.net arigo at codespeak.net
Sat Jan 20 09:20:19 CET 2007


Author: arigo
Date: Sat Jan 20 09:20:08 2007
New Revision: 37052

Modified:
   pypy/dist/pypy/annotation/signature.py
   pypy/dist/pypy/rpython/lltypesystem/rlist.py
Log:
Forgot to check this in.  This is what makes the tests pass again in r37051.


Modified: pypy/dist/pypy/annotation/signature.py
==============================================================================
--- pypy/dist/pypy/annotation/signature.py	(original)
+++ pypy/dist/pypy/annotation/signature.py	Sat Jan 20 09:20:08 2007
@@ -96,6 +96,8 @@
                 assert isinstance(s_input, annmodel.SomePBC)
                 assert s_input.is_constant()
                 args_s.append(s_input)
+            elif argtype is None:
+                args_s.append(inputcells[i])     # no change
             else:
                 args_s.append(annotation(argtype, bookkeeper=funcdesc.bookkeeper))
         if len(inputcells) != len(args_s):

Modified: pypy/dist/pypy/rpython/lltypesystem/rlist.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rlist.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/rlist.py	Sat Jan 20 09:20:08 2007
@@ -313,6 +313,7 @@
             p -= 1
     l.length = newsize
     l.items = newitems
+_ll_list_resize_really._annenforceargs_ = (None, int)
 
 # this common case was factored out of _ll_list_resize
 # to see if inlining it gives some speed-up.



More information about the Pypy-commit mailing list