Unverified Commit 6da10f64 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4369 from shuujii/remove-incorrect-flags-updating-in-mrb_regexp_p

Remove incorrect flags updating in `mrb_regexp_p()`
parents 9b9c41d6 0c9c3f08
...@@ -205,7 +205,6 @@ mrb_regexp_p(mrb_state *mrb, mrb_value v) ...@@ -205,7 +205,6 @@ mrb_regexp_p(mrb_state *mrb, mrb_value v)
return mrb_obj_is_kind_of(mrb, v, mrb_class_get(mrb, REGEXP_CLASS)); return mrb_obj_is_kind_of(mrb, v, mrb_class_get(mrb, REGEXP_CLASS));
} }
else { else {
mrb->flags |= MRB_STATE_REGEXP;
mrb->flags |= MRB_STATE_NO_REGEXP; mrb->flags |= MRB_STATE_NO_REGEXP;
} }
return FALSE; return FALSE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment