diff options
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1832,9 +1832,8 @@ static VALUE dir_open_dir(int argc, VALUE *argv) { VALUE dir = rb_funcall2(rb_cDir, rb_intern("open"), argc, argv); - struct dir_data *dirp; - TypedData_Get_Struct(dir, struct dir_data, &dir_data_type, dirp); + rb_check_typeddata(dir, &dir_data_type); return dir; } |