Project

General

Profile

Feature #6173 » patch.diff

Glass_saga (Masaki Matsushita), 03/18/2012 11:14 PM

View differences:

re.c
return 0;
}
else if (m == 1) {
const unsigned char *ys = y, *ye = ys + n;
for (; y < ye; ++y) {
if (*x == *y)
return y - ys;
}
return -1;
const unsigned char *ys;
if (ys = memchr(y, x[0], n))
return ys - y;
else
return -1;
}
else if (m <= SIZEOF_VALUE) {
return rb_memsearch_ss(x0, m, y0, n);
(1-1/2)