Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56188:ffc7375ed7c3
Date: 2012-07-18 19:59 +0200
http://bitbucket.org/pypy/pypy/changeset/ffc7375ed7c3/
Log: one in the JIT
diff --git a/pypy/jit/metainterp/optimizeopt/vstring.py
b/pypy/jit/metainterp/optimizeopt/vstring.py
--- a/pypy/jit/metainterp/optimizeopt/vstring.py
+++ b/pypy/jit/metainterp/optimizeopt/vstring.py
@@ -131,6 +131,7 @@
# Also, as long as self.is_virtual(), then we know that no-one else
# could have written to the string, so we know that in this case
# "None" corresponds to "really uninitialized".
+ assert size >= 0
self._chars = [None] * size
def setup_slice(self, longerlist, start, stop):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit