mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
downto, upto, step to return Enumerator
This commit is contained in:
+1
-1
@@ -754,7 +754,7 @@ mrb_memsearch(const void *x0, mrb_int m, const void *y0, mrb_int n)
|
||||
else if (m < 1) {
|
||||
return 0;
|
||||
}
|
||||
else if (m == 1) {
|
||||
else if (m == 1) {
|
||||
const unsigned char *ys = y, *ye = ys + n;
|
||||
for (; y < ye; ++y) {
|
||||
if (*x == *y)
|
||||
|
||||
Reference in New Issue
Block a user