[pypy-commit] pypy virtual-arguments: another one

fijal noreply at buildbot.pypy.org
Wed Jul 18 17:59:29 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56180:1f99cb314a0d
Date: 2012-07-18 17:59 +0200
http://bitbucket.org/pypy/pypy/changeset/1f99cb314a0d/

Log:	another one

diff --git a/pypy/interpreter/pyframe.py b/pypy/interpreter/pyframe.py
--- a/pypy/interpreter/pyframe.py
+++ b/pypy/interpreter/pyframe.py
@@ -222,6 +222,7 @@
 
     @jit.unroll_safe
     def peekvalues(self, n):
+        assert n >= 0
         values_w = [None] * n
         base = self.valuestackdepth - n
         assert base >= self.pycode.co_nlocals


More information about the pypy-commit mailing list