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 | |
| 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
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | variable.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Wed Jan 21 11:17:44 2009 Shugo Maeda <shugo@ruby-lang.org> + + * 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. + Tue Jan 20 18:30:57 2009 Yukihiro Matsumoto <matz@ruby-lang.org> * parse.y (IS_BEG): EXPR_CLASS should be treated like EXPR_BEG. 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)); |
