mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* variable.c (rb_mod_remove_cvar): fix r19711.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
525b4535ca
commit
ae4bc66b64
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Oct 9 22:04:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* variable.c (rb_mod_remove_cvar): fix r19711.
|
||||
|
||||
Thu Oct 9 21:17:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/syck/syck.c (syck_lookup_sym): remove reading uninitialized
|
||||
|
|
|
@ -1909,7 +1909,7 @@ rb_mod_class_variables(VALUE obj)
|
|||
* @@var = 99
|
||||
* puts @@var
|
||||
* remove_class_variable(:@@var)
|
||||
* puts(defined? @@var)
|
||||
* p(defined? @@var)
|
||||
* end
|
||||
*
|
||||
* <em>produces:</em>
|
||||
|
@ -1922,7 +1922,7 @@ VALUE
|
|||
rb_mod_remove_cvar(VALUE mod, VALUE 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));
|
||||
|
|
Loading…
Add table
Reference in a new issue