From 083e7e397c12fb402b94428ca008c34d7cd27cf5 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 7 Jun 2013 13:25:41 +0000 Subject: [PATCH] * variable.c (rb_const_set): fix variable type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variable.c b/variable.c index b5040f4d20..ee298a0311 100644 --- a/variable.c +++ b/variable.c @@ -2140,7 +2140,7 @@ void 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 val) 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();