ByteArray.st
branchjv
changeset 19811 65fec19facb0
parent 19659 0f585374259a
parent 19764 9a79f79d50c4
child 19948 be658f466bca
--- a/ByteArray.st	Thu May 05 06:48:19 2016 +0200
+++ b/ByteArray.st	Thu May 12 09:30:28 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