Commits

Maciej Fijalkowski committed b2e4012

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

Comments (0)

Files changed (1)

pypy/interpreter/argument.py

             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():