ByteArray.st
changeset 19764 9a79f79d50c4
parent 19645 053a5232234d
child 19811 65fec19facb0
child 19934 392ce4c308c6
--- a/ByteArray.st	Mon May 09 09:38:06 2016 +0200
+++ b/ByteArray.st	Mon May 09 10:36:32 2016 +0200
@@ -2938,7 +2938,7 @@
             src2 += sizeof(INT);
         }
 
-        for ( ; len2 > (OHDR_SIZE+sizeof(INT)); len2++) {
+        for ( ; len2 > OHDR_SIZE; len2--) {
             if (*src1++ != *src2++) {
                 RETURN (false);
             }
@@ -2957,6 +2957,7 @@
 
     "
      #[1 2 3 4 5 6 7 8 9 10] startsWith:#[ 1 2 3 4 5]
+     #[1 2 3 4] startsWith:#[ 1 3 4 5]
      #[1 2 3 4 5 6 7 8 9 10] startsWith:#[ 0 1 2 3 4 5]
      #[1 2 3 4 5 6 7 8 9 10] startsWith:#(1 2 3 4 5)
      #[1 2 3 4 5 6 7 8 9 10] startsWith:1