@@ -327,13 +327,13 @@ static VALUE object_spec_rb_ivar_defined(VALUE self, VALUE obj, VALUE sym_name)
327
327
return rb_ivar_defined (obj , SYM2ID (sym_name ));
328
328
}
329
329
330
- static VALUE object_spec_rb_copy_generic_ivar (VALUE self , VALUE obj ) {
331
- rb_copy_generic_ivar (self , obj );
330
+ static VALUE object_spec_rb_copy_generic_ivar (VALUE self , VALUE clone , VALUE obj ) {
331
+ rb_copy_generic_ivar (clone , obj );
332
332
return self ;
333
333
}
334
334
335
- static VALUE object_spec_rb_free_generic_ivar (VALUE self ) {
336
- rb_free_generic_ivar (self );
335
+ static VALUE object_spec_rb_free_generic_ivar (VALUE self , VALUE obj ) {
336
+ rb_free_generic_ivar (obj );
337
337
return self ;
338
338
}
339
339
@@ -410,8 +410,8 @@ void Init_object_spec(void) {
410
410
rb_define_method (cls , "rb_ivar_get" , object_spec_rb_ivar_get , 2 );
411
411
rb_define_method (cls , "rb_ivar_set" , object_spec_rb_ivar_set , 3 );
412
412
rb_define_method (cls , "rb_ivar_defined" , object_spec_rb_ivar_defined , 2 );
413
- rb_define_method (cls , "rb_copy_generic_ivar" , object_spec_rb_copy_generic_ivar , 1 );
414
- rb_define_method (cls , "rb_free_generic_ivar" , object_spec_rb_free_generic_ivar , 0 );
413
+ rb_define_method (cls , "rb_copy_generic_ivar" , object_spec_rb_copy_generic_ivar , 2 );
414
+ rb_define_method (cls , "rb_free_generic_ivar" , object_spec_rb_free_generic_ivar , 1 );
415
415
}
416
416
417
417
#ifdef __cplusplus
0 commit comments