Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Kernel#respond_to? should return true|false only
  • Loading branch information
ksss committed Oct 23, 2016
1 parent 9d3167c commit 022e147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel.c
Expand Up @@ -963,7 +963,7 @@ obj_respond_to(mrb_state *mrb, mrb_value self)
mrb_value args[2]; mrb_value args[2];
args[0] = mid; args[0] = mid;
args[1] = mrb_bool_value(priv); 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); return mrb_bool_value(respond_to_p);
Expand Down

0 comments on commit 022e147

Please sign in to comment.