Unverified Commit 022e147b authored by ksss's avatar ksss

Kernel#respond_to? should return true|false only

parent 9d3167ca
......@@ -963,7 +963,7 @@ obj_respond_to(mrb_state *mrb, mrb_value self)
mrb_value args[2];
args[0] = mid;
args[1] = mrb_bool_value(priv);
return mrb_funcall_argv(mrb, self, rtm_id, 2, args);
return mrb_bool_value(mrb_bool(mrb_funcall_argv(mrb, self, rtm_id, 2, args)));
}
}
return mrb_bool_value(respond_to_p);
......
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