summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-08 23:20:13 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-08 23:20:13 (GMT)
commit140d7fd95d82d7156bbb798ad9732ff9f7e4f14c (patch)
treede0f5acc306c3b569be517f6e621baee2fa0a684 /vm.c
parent5856347f16368783a1d9d6691e3d5e125f720897 (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 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index da25fbd..b3b236b 100644
--- a/vm.c
+++ b/vm.c
@@ -2267,7 +2267,7 @@ vm_define_method(rb_thread_t *th, VALUE obj, ID id, VALUE iseqval,
rb_num_t is_singleton, rb_cref_t *cref)
{
VALUE klass = CREF_CLASS(cref);
- int noex = CREF_VISI(cref);
+ rb_method_flag_t noex = (rb_method_flag_t)CREF_VISI(cref);
rb_iseq_t *miseq;
GetISeqPtr(iseqval, miseq);