diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 13:25:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 13:25:41 +0000 |
commit | 083e7e397c12fb402b94428ca008c34d7cd27cf5 (patch) | |
tree | af524521beb885252d964d57cee91bbd0a57eb22 /variable.c | |
parent | bcd5328c706ac3dd71408180a765e86b99651db8 (diff) | |
download | ruby-083e7e397c12fb402b94428ca008c34d7cd27cf5.tar.gz |
* 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
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 4 |
1 files 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(); |