From bad9d2246ff294e7471fd5a9f06117714585bc95 Mon Sep 17 00:00:00 2001 From: mame Date: Sat, 20 Oct 2018 05:44:12 +0000 Subject: [PATCH] iseq.c (rb_iseq_trace_flag_cleared): Accept size_t for type consistency It caused "implicit conversion loses integer precision" on clang. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iseq.c b/iseq.c index c31a0a2051..962186df52 100644 --- a/iseq.c +++ b/iseq.c @@ -1663,7 +1663,7 @@ rb_iseq_clear_event_flags(const rb_iseq_t *iseq, size_t pos, rb_event_flag_t res if (entry) { entry->events &= ~reset; if (!(entry->events & iseq->aux.trace_events)) { - void rb_iseq_trace_flag_cleared(const rb_iseq_t *iseq, int pos); + void rb_iseq_trace_flag_cleared(const rb_iseq_t *iseq, size_t pos); rb_iseq_trace_flag_cleared(iseq, pos); } } @@ -2949,7 +2949,7 @@ encoded_iseq_trace_instrument(VALUE *iseq_encoded_insn, rb_event_flag_t turnon) } void -rb_iseq_trace_flag_cleared(const rb_iseq_t *iseq, int pos) +rb_iseq_trace_flag_cleared(const rb_iseq_t *iseq, size_t pos) { const struct rb_iseq_constant_body *const body = iseq->body; VALUE *iseq_encoded = (VALUE *)body->iseq_encoded;