summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index 939d5edc6d..cdcd287016 100644
--- a/object.c
+++ b/object.c
@@ -409,11 +409,11 @@ inspect_obj(VALUE obj, VALUE str, int recur)
* Time.new.inspect #=> "2008-03-08 19:43:39 +0900"
*/
-extern int rb_obj_basic_to_s_p(VALUE);
-
static VALUE
rb_obj_inspect(VALUE obj)
{
+ extern int rb_obj_basic_to_s_p(VALUE);
+
if (TYPE(obj) == T_OBJECT && rb_obj_basic_to_s_p(obj)) {
int has_ivar = 0;
VALUE *ptr = ROBJECT_IVPTR(obj);