Skip to content

Commit 529400a

Browse files
committed
Replace deprecated rb_cData class by rb_cObject
rb_cData is no longer available in ruby-3.2
1 parent cebe828 commit 529400a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pk11_struct_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ set_ulong_ptr(VALUE obj, VALUE value, const char *name, off_t offset)
8686
*ptr = NULL_PTR;
8787
return value;
8888
}
89-
new_obj = Data_Make_Struct(rb_cData, CK_ULONG, 0, -1, *ptr);
89+
new_obj = Data_Make_Struct(rb_cObject, CK_ULONG, 0, -1, *ptr);
9090
rb_iv_set(obj, name, new_obj);
9191
**ptr = NUM2ULONG(value);
9292
return value;

0 commit comments

Comments
 (0)