[pypy-commit] pypy virtual-arguments: make sure we don't pass a negative to new_array in the jit - in the process of fixing the jit

fijal noreply at buildbot.pypy.org
Wed Jul 18 13:49:24 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56126:b2e4012b36c4
Date: 2012-07-18 13:49 +0200
http://bitbucket.org/pypy/pypy/changeset/b2e4012b36c4/

Log:	make sure we don't pass a negative to new_array in the jit - in the
	process of fixing the jit

diff --git a/pypy/interpreter/argument.py b/pypy/interpreter/argument.py
--- a/pypy/interpreter/argument.py
+++ b/pypy/interpreter/argument.py
@@ -272,6 +272,7 @@
             for i in range(take):
                 scope_w[i + input_argcount] = args_w[i]
             input_argcount += take
+            input_argcount = max(input_argcount, 0)
 
         # collect extra positional arguments into the *vararg
         if signature.has_vararg():


More information about the pypy-commit mailing list