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

fijal noreply at buildbot.pypy.org
Wed Jul 18 15:13:04 CEST 2012


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

Log:	another one

diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -164,6 +164,8 @@
             raise FailedToImplement
         raise
     data = w_bytearray.data
+    if times < 0:
+        times = 0
     return W_BytearrayObject(data * times)
 
 def mul__Bytearray_ANY(space, w_bytearray, w_times):


More information about the pypy-commit mailing list