diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-21 02:18:06 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-21 02:18:06 +0000 |
| commit | bf29101b00f8ebf2ea134db68f08c71390dc14e8 (patch) | |
| tree | 8fb0c05ce190c0a25d80eb0f2c3a1b140d490b94 /variable.c | |
| parent | e8e50de7b543195d0bd12018e6a0a8f433c4868d (diff) | |
* variable.c (rb_mod_remove_cvar): fixed rb_mod_remove_cvar() to
pass test_cvar_scope_with_instance_eval in test/ruby/test_eval.rb.
Module#remove_class_variable seems to be broken in r19711.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
| -rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 87c085270c..3950fdbf8f 100644 --- a/variable.c +++ b/variable.c @@ -1931,7 +1931,7 @@ rb_mod_remove_cvar(mod, name) VALUE mod, name; { const ID id = rb_to_id(name); - st_data_t val, n; + st_data_t val, n = id; if (!rb_is_class_id(id)) { rb_name_error(id, "wrong class variable name %s", rb_id2name(id)); |
