Permalink
Browse files

Kernel#respond_to? should return true|false only

  • Loading branch information...
ksss committed Oct 23, 2016
1 parent 9d3167c commit 022e147b78086e9cb315c08533ae2278f5aa1777
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/kernel.c
View
@@ -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);

0 comments on commit 022e147

Please sign in to comment.