[pypy-svn] r57616 - pypy/dist/pypy/translator/cli/src

antocuni at codespeak.net antocuni at codespeak.net
Mon Aug 25 10:10:43 CEST 2008


Author: antocuni
Date: Mon Aug 25 10:10:41 2008
New Revision: 57616

Modified:
   pypy/dist/pypy/translator/cli/src/pypylib.cs
Log:
fix test_rfind_empty_string, which has been failing for a while now



Modified: pypy/dist/pypy/translator/cli/src/pypylib.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/pypylib.cs	Mon Aug 25 10:10:41 2008
@@ -356,6 +356,8 @@
             int count = stop-start;
             if (start > s1.Length)
                 return -1;
+            if (s2 == "")
+              return stop;
             return s1.LastIndexOf(s2, stop-1, count);
         }
 



More information about the Pypy-commit mailing list