Project

General

Profile

Feature #6173 » patch2.diff

Glass_saga (Masaki Matsushita), 03/19/2012 12:10 AM

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, n))
return ys - y;
else
return -1;
}
else if (m <= SIZEOF_VALUE) {
return rb_memsearch_ss(x0, m, y0, n);
(2-2/2)