Author: Maciej Fijalkowski <[email protected]>
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():
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit