diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
commit | 776f222f590998bc0da95990b9d113b63103c6a6 (patch) | |
tree | 5f3558168cba03413c22fb5a9b3a7d64e0519df2 /struct.c | |
parent | 8b8a531c69c5e3d34733cec67cbaa19da8e3517b (diff) | |
download | ruby-776f222f590998bc0da95990b9d113b63103c6a6.tar.gz ruby-776f222f590998bc0da95990b9d113b63103c6a6.tar.xz ruby-776f222f590998bc0da95990b9d113b63103c6a6.zip |
2000-03-13
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -444,7 +444,7 @@ rb_struct_aref(s, idx) { long i; - if (TYPE(idx) == T_STRING) { + if (TYPE(idx) == T_STRING || TYPE(idx) == T_SYMBOL) { return rb_struct_aref_id(s, rb_to_id(idx)); } @@ -489,7 +489,7 @@ rb_struct_aset(s, idx, val) { long i; - if (TYPE(idx) == T_STRING) { + if (TYPE(idx) == T_STRING || TYPE(idx) == T_SYMBOL) { return rb_struct_aset_id(s, rb_to_id(idx), val); } |