mercurial/mdiff.py
changeset 326 235443668bea
parent 325 ad87e19854a6
child 330 27d08c0c2a7e
--- a/mercurial/mdiff.py	Mon Jun 13 13:43:48 2005 -0800
+++ b/mercurial/mdiff.py	Mon Jun 13 14:53:33 2005 -0800
@@ -50,7 +50,7 @@
         am, bm, = la, lb
 
         # walk over matching lines
-        while lb < lenb and la < lenb and a[la] == b[lb] :
+        while lb < lenb and la < lena and a[la] == b[lb] :
             la += 1
             lb += 1