summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/object.c b/object.c
index 50c2fe04f5..46e39eaec1 100644
--- a/object.c
+++ b/object.c
@@ -3183,9 +3183,7 @@ rb_obj_dig(int argc, VALUE *argv, VALUE obj, VALUE notfound)
}
}
}
- obj = rb_check_funcall(obj, id_dig, argc, argv);
- if (obj == Qundef) return notfound;
- break;
+ return rb_check_funcall_default(obj, id_dig, argc, argv, notfound);
}
return obj;
}