diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-04 09:12:46 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-04 09:12:46 +0900 |
| commit | c31c6c08330da2a32ab64b4dad1719278d6a6a7d (patch) | |
| tree | 68a086867d05fd8498f1ddb1168e85f2d36cf55f /mrbgems/mruby-string-utf8/src/string.c | |
| parent | 82515722ff66c75802bf9bf1b324ab0b2cebbe81 (diff) | |
| parent | 73874f400835507bd18dba0e62874e970795774d (diff) | |
| download | mruby-c31c6c08330da2a32ab64b4dad1719278d6a6a7d.tar.gz mruby-c31c6c08330da2a32ab64b4dad1719278d6a6a7d.zip | |
Merge pull request #2352 from suzukaze/fix-indent
Fix indents in mruby-string-utf8
Diffstat (limited to 'mrbgems/mruby-string-utf8/src/string.c')
| -rw-r--r-- | mrbgems/mruby-string-utf8/src/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-string-utf8/src/string.c b/mrbgems/mruby-string-utf8/src/string.c index 591301591..1da7e3fdc 100644 --- a/mrbgems/mruby-string-utf8/src/string.c +++ b/mrbgems/mruby-string-utf8/src/string.c @@ -159,10 +159,10 @@ mrb_memsearch_qs(const unsigned char *xs, mrb_int m, const unsigned char *ys, mr qstable[i] = m + 1; for (; x < xe; ++x) qstable[*x] = xe - x; - /* Searching */ + /* Searching */ for (; y + m <= ys + n; y += *(qstable + y[m])) { if (*xs == *y && memcmp(xs, y, m) == 0) - return y - ys; + return y - ys; } return -1; } @@ -570,7 +570,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str) if (mrb_string_p(spat)) { split_type = string; if (RSTRING_LEN(spat) == 1 && RSTRING_PTR(spat)[0] == ' '){ - split_type = awk; + split_type = awk; } } else { |
