summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 57050b7422..e87a082c23 100644
--- a/struct.c
+++ b/struct.c
@@ -25,7 +25,7 @@ rb_struct_iv_get(VALUE c, const char *name)
for (;;) {
if (rb_ivar_defined(c, id))
return rb_ivar_get(c, id);
- c = RCLASS(c)->super;
+ c = RCLASS_SUPER(c);
if (c == 0 || c == rb_cStruct)
return Qnil;
}