Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56153:cc8bf3449424
Date: 2012-07-18 15:41 +0200
http://bitbucket.org/pypy/pypy/changeset/cc8bf3449424/

Log:    yet another fix

diff --git a/pypy/module/__pypy__/bytebuffer.py 
b/pypy/module/__pypy__/bytebuffer.py
--- a/pypy/module/__pypy__/bytebuffer.py
+++ b/pypy/module/__pypy__/bytebuffer.py
@@ -9,6 +9,8 @@
 class ByteBuffer(RWBuffer):
 
     def __init__(self, len):
+        if len < 0:
+            len = 0
         self.data = ['\x00'] * len
 
     def getlength(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to