From bf29101b00f8ebf2ea134db68f08c71390dc14e8 Mon Sep 17 00:00:00 2001 From: shugo Date: Wed, 21 Jan 2009 02:18:06 +0000 Subject: * 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 --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.c') 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)); -- cgit v1.2.3