diff options
Diffstat (limited to 'ext/objspace/objspace.c')
-rw-r--r-- | ext/objspace/objspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index bf0d31a8e2..844beef381 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -600,7 +600,7 @@ static VALUE rb_mInternalObjectWrapper; static VALUE iow_newobj(VALUE obj) { - return rb_data_typed_object_alloc(rb_mInternalObjectWrapper, (void *)obj, &iow_data_type); + return TypedData_Wrap_Struct(rb_mInternalObjectWrapper, &iow_data_type, (void *)obj); } /* Returns the type of the internal object. */ |