[pypy-svn] r54621 - pypy/branch/io-improvements/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Sat May 10 15:37:34 CEST 2008


Author: fijal
Date: Sat May 10 15:37:32 2008
New Revision: 54621

Modified:
   pypy/branch/io-improvements/pypy/rpython/lltypesystem/rstr.py
Log:
a missing assert


Modified: pypy/branch/io-improvements/pypy/rpython/lltypesystem/rstr.py
==============================================================================
--- pypy/branch/io-improvements/pypy/rpython/lltypesystem/rstr.py	(original)
+++ pypy/branch/io-improvements/pypy/rpython/lltypesystem/rstr.py	Sat May 10 15:37:32 2008
@@ -655,6 +655,7 @@
     def ll_stringslice_minusone(s1):
         newlen = len(s1.chars) - 1
         newstr = s1.malloc(newlen)
+        assert newlen >= 0
         s1.copy_contents(s1, newstr, 0, 0, newlen)
         return newstr
 



More information about the Pypy-commit mailing list