[pypy-commit] pypy default: Fix for test_string and test_unicode, failing with the

arigo noreply at buildbot.pypy.org
Mon Oct 31 18:13:30 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r48630:fb26ce1b9d1b
Date: 2011-10-31 17:13 +0000
http://bitbucket.org/pypy/pypy/changeset/fb26ce1b9d1b/

Log:	Fix for test_string and test_unicode, failing with the new tests
	added in c91b4f3c204f.

diff --git a/pypy/translator/jvm/src/pypy/PyPy.java b/pypy/translator/jvm/src/pypy/PyPy.java
--- a/pypy/translator/jvm/src/pypy/PyPy.java
+++ b/pypy/translator/jvm/src/pypy/PyPy.java
@@ -755,7 +755,7 @@
         int end = str.length();
 
         if (left) {
-            while (start <= str.length() && str.charAt(start) == ch) start++;
+            while (start < str.length() && str.charAt(start) == ch) start++;
         }
 
         if (right) {


More information about the pypy-commit mailing list