Branch: Tag:

2002-03-18

2002-03-18 15:20:11 by Johan Sundström <oyasumi@gmail.com>

More bug fixes in Array.chunky_diff. Now comparison is done with `==.

Rev: lib/modules/Array.pmod:1.64

618:    last = at + 1;    if(at < 2) continue;    b = d2[at-1]; yb = d2[at]; -  if(sizeof(yb) > sizeof(b) && -  equal(b, yb[sizeof(yb)-sizeof(b)..])) // has_suffix(yb, b) + out:if(sizeof(yb) > sizeof(b))    { -  +  int i = sizeof(b), j = sizeof(yb); +  while(i) +  if(b[--i] != yb[--j]) +  break out; // past five lines implement an if(has_suffix(yb, b))    x = d2[at-2];    y = yb[..sizeof(yb)-sizeof(b)-1]; -  if(at <= sizeof(d1)) +  if(at+1 <= sizeof(d1))    {    c = d2[at+1];    array bc = b+c;