ruby-changes:29097
From: nobu <ko1@a...>
Date: Fri, 7 Jun 2013 22:25:50 +0900 (JST)
Subject: [ruby-changes:29097] nobu:r41149 (trunk): * variable.c (rb_const_set): fix variable type.
nobu 2013-06-07 22:25:41 +0900 (Fri, 07 Jun 2013) New Revision: 41149 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41149 Log: * variable.c (rb_const_set): fix variable type. Modified files: trunk/variable.c Index: variable.c =================================================================== --- variable.c (revision 41148) +++ variable.c (revision 41149) @@ -2140,7 +2140,7 @@ void https://github.com/ruby/ruby/blob/trunk/variable.c#L2140 rb_const_set(VALUE klass, ID id, VALUE val) { rb_const_entry_t *ce; - VALUE visibility = CONST_PUBLIC; + rb_const_flag_t visibility = CONST_PUBLIC if (NIL_P(klass)) { rb_raise(rb_eTypeError, "no class/module to define constant %"PRIsVALUE"", @@ -2189,7 +2189,7 @@ rb_const_set(VALUE klass, ID id, VALUE v https://github.com/ruby/ruby/blob/trunk/variable.c#L2189 rb_vm_change_state(); ce = ALLOC(rb_const_entry_t); - ce->flag = (rb_const_flag_t)visibility; + ce->flag = visibility; ce->value = val; ce->file = rb_sourcefilename(); ce->line = rb_sourceline(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/