diff options
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -759,7 +759,7 @@ rb_struct_aref(VALUE s, VALUE idx) return rb_struct_aref_sym(s, idx); } else if (RB_TYPE_P(idx, T_STRING)) { - ID id = rb_check_id_without_pindown(&idx); + ID id = rb_check_id(&idx); if (!id) { rb_name_error_str(idx, "no member '%"PRIsVALUE"' in struct", QUOTE(idx)); |