aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index c39ece1804..ff8e6f2ad4 100644
--- a/eval.c
+++ b/eval.c
@@ -428,7 +428,7 @@ rb_export_method(klass, name, noex)
if (!body && TYPE(klass) == T_MODULE) {
body = search_method(rb_cObject, name, &origin);
}
- if (!body) {
+ if (!body || !body->nd_body) {
print_undef(klass, name);
}
if (body->nd_noex != noex) {
@@ -9367,7 +9367,7 @@ rb_cont_call(argc, argv, cont)
th->result = Qnil;
break;
case 1:
- th->result = *argv;
+ th->result = argv[0];
break;
default:
th->result = rb_ary_new4(argc, argv);