diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-08 23:20:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-08 23:20:13 +0000 |
commit | 140d7fd95d82d7156bbb798ad9732ff9f7e4f14c (patch) | |
tree | de0f5acc306c3b569be517f6e621baee2fa0a684 /proc.c | |
parent | 5856347f16368783a1d9d6691e3d5e125f720897 (diff) |
proc.c, vm.c: fix implicit conversions
* proc.c (rb_mod_define_method): fix implicit conversion of
visibility type. erred by -Werror=shorten-64-to-32.
* vm.c (vm_define_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1638,11 +1638,11 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod) { ID id; VALUE body; - int noex = NOEX_PUBLIC; + rb_method_flag_t noex = NOEX_PUBLIC; const rb_cref_t *cref = rb_vm_cref_in_context(mod, mod); if (cref) { - noex = CREF_VISI(cref); + noex = (rb_method_flag_t)CREF_VISI(cref); } if (argc == 1) { |