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

fijal noreply at buildbot.pypy.org
Wed Jul 18 18:28:54 CEST 2012


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

Log:	another one

diff --git a/pypy/interpreter/astcompiler/assemble.py b/pypy/interpreter/astcompiler/assemble.py
--- a/pypy/interpreter/astcompiler/assemble.py
+++ b/pypy/interpreter/astcompiler/assemble.py
@@ -332,7 +332,9 @@
         """Turn the applevel constants dictionary into a list."""
         w_consts = self.w_consts
         space = self.space
-        consts_w = [space.w_None] * space.len_w(w_consts)
+        lgt = space.len_w(w_consts)
+        assert lgt >= 0
+        consts_w = [space.w_None] * lgt
         w_iter = space.iter(w_consts)
         first = space.wrap(0)
         while True:


More information about the pypy-commit mailing list