summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/struct.c b/struct.c
index df35714adf..b6a19e14bb 100644
--- a/struct.c
+++ b/struct.c
@@ -381,7 +381,7 @@ struct_aref(s, idx)
return RSTRUCT(s)->ptr[i];
}
-VALUE
+static VALUE
struct_aset_id(s, id, val)
VALUE s, val;
ID id;
@@ -412,7 +412,7 @@ struct_aset(s, idx, val)
int i;
if (TYPE(idx) == T_STRING) {
- return struct_aref_id(s, rb_to_id(idx));
+ return struct_aset_id(s, rb_to_id(idx), val);
}
i = NUM2INT(idx);