[pypy-commit] pypy default: be more specific
gutworth
noreply at buildbot.pypy.org
Thu Mar 29 14:54:19 CEST 2012
Author: Benjamin Peterson <benjamin at python.org>
Branch:
Changeset: r54064:9ae198609e0b
Date: 2012-03-29 08:54 -0400
http://bitbucket.org/pypy/pypy/changeset/9ae198609e0b/
Log: be more specific
diff --git a/pypy/rpython/lltypesystem/rstr.py b/pypy/rpython/lltypesystem/rstr.py
--- a/pypy/rpython/lltypesystem/rstr.py
+++ b/pypy/rpython/lltypesystem/rstr.py
@@ -767,7 +767,7 @@
assert start >= 0
# If start > stop, return a empty string. This can happen if the start
# is greater than the length of the string. Use < instead of <= to avoid
- # creating another path for the JIT.
+ # creating another path for the JIT when start == stop.
if lgt < 0:
return s1.empty()
newstr = s1.malloc(lgt)
More information about the pypy-commit
mailing list