Skip to content

Commit 1353bfb

Browse files
committed
Fix rb_struct_members and rb_struct_s_members
1 parent 16c74eb commit 1353bfb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
fails:C-API Struct function rb_struct_getmember returns the value of a struct member
22
fails:C-API Struct function rb_struct_getmember raises a NameError if the struct member does not exist
3-
fails:C-API Struct function rb_struct_s_members returns the struct members as an array of symbols
4-
fails:C-API Struct function rb_struct_members returns the struct members as an array of symbols

src/main/c/cext/struct.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ VALUE rb_struct_new(VALUE klass, ...) {
6565
}
6666

6767
VALUE rb_struct_s_members(VALUE klass) {
68-
return RUBY_INVOKE(klass, "rb_struct_s_members");
68+
return RUBY_INVOKE(klass, "members");
6969
}
7070

7171
VALUE rb_struct_members(VALUE s) {
72-
return RUBY_INVOKE(s, "rb_struct_members");
72+
return RUBY_INVOKE(s, "members");
7373
}
7474

7575
VALUE rb_struct_size(VALUE s) {

0 commit comments

Comments
 (0)