diff options
| author | Tomoyuki Sahara <[email protected]> | 2015-05-21 11:50:02 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2015-05-21 11:50:02 +0900 |
| commit | 4308f3c6864be6b5738d4ce3b38d6c40080604b6 (patch) | |
| tree | 6589d7c6fd9443c59f1e364b8fa916fdf090399f /src/string.c | |
| parent | b7049b3945862c7fae803c287d981b33268e955b (diff) | |
| download | mruby-4308f3c6864be6b5738d4ce3b38d6c40080604b6.tar.gz mruby-4308f3c6864be6b5738d4ce3b38d6c40080604b6.zip | |
remove an always-true conditional.
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 609c68784..e05c6f749 100644 --- a/src/string.c +++ b/src/string.c @@ -1805,7 +1805,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str) mrb_int idx = 0; int ai = mrb_gc_arena_save(mrb); - while (idx < str_len && 1) { + while (idx < str_len) { if (pat_len > 0) { end = mrb_memsearch(RSTRING_PTR(spat), pat_len, RSTRING_PTR(str)+idx, str_len - idx); if (end < 0) break; |
