diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-03 20:19:54 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-03 20:19:54 +0900 |
| commit | 653ddd6d3e8da23b0c7a7e85a199ae32486bdbba (patch) | |
| tree | 782f40ad2da0c54d07adbd41df9f7cb9409a3a08 /src/string.c | |
| parent | 83a1e7122b5cb8fc22ddcef91241daabf98b1261 (diff) | |
| download | mruby-653ddd6d3e8da23b0c7a7e85a199ae32486bdbba.tar.gz mruby-653ddd6d3e8da23b0c7a7e85a199ae32486bdbba.zip | |
downto, upto, step to return Enumerator
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 439cb5409..e5aac98b7 100644 --- a/src/string.c +++ b/src/string.c @@ -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) |
