diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-29 01:21:15 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-29 01:21:15 +0000 |
commit | 238ac9fcb2abd5cfea328eb108886e523c09189b (patch) | |
tree | a0c4330e9a364d97054576431744250e2ca643f6 /variable.c | |
parent | 5a3e59d284a20bf7bda78b828dfce522267acee8 (diff) | |
download | ruby-238ac9fcb2abd5cfea328eb108886e523c09189b.tar.gz |
* variable.c (rb_ivar_set): fix class instance variable.
* object.c (rb_class_real): cl argument may be 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/variable.c b/variable.c index d5c3bfe100..16859c2cab 100644 --- a/variable.c +++ b/variable.c @@ -1027,6 +1027,7 @@ rb_ivar_set(VALUE obj, ID id, VALUE val) case T_MODULE: if (!RCLASS_IV_TBL(obj)) RCLASS_IV_TBL(obj) = st_init_numtable(); st_insert(RCLASS_IV_TBL(obj), id, val); + break; default: generic_ivar_set(obj, id, val); break; |