diff options
-rw-r--r-- | enumerator.c | 2 | ||||
-rw-r--r-- | range.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c index 20be5e858b..59e1633325 100644 --- a/enumerator.c +++ b/enumerator.c @@ -2283,7 +2283,7 @@ lazy_drop_while(VALUE obj) static int lazy_uniq_check(VALUE chain, VALUE memos, long memo_index) { - VALUE hash = rb_ary_entry(memos, memo_index);; + VALUE hash = rb_ary_entry(memos, memo_index); if (NIL_P(hash)) { hash = rb_obj_hide(rb_hash_new()); @@ -251,7 +251,7 @@ range_each_func(VALUE range, int (*func)(VALUE, VALUE), VALUE arg) } else { while ((c = r_less(v, e)) <= 0) { - if ((*func)(v, arg)) break;; + if ((*func)(v, arg)) break; if (!c) break; v = rb_funcallv(v, id_succ, 0, 0); } |