ruby-changes:52985
From: mame <ko1@a...>
Date: Sat, 20 Oct 2018 14:44:16 +0900 (JST)
Subject: [ruby-changes:52985] mame:r65199 (trunk): iseq.c (rb_iseq_trace_flag_cleared): Accept size_t for type consistency
mame 2018-10-20 14:44:12 +0900 (Sat, 20 Oct 2018) New Revision: 65199 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65199 Log: iseq.c (rb_iseq_trace_flag_cleared): Accept size_t for type consistency It caused "implicit conversion loses integer precision" on clang. Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 65198) +++ iseq.c (revision 65199) @@ -1663,7 +1663,7 @@ rb_iseq_clear_event_flags(const rb_iseq_ https://github.com/ruby/ruby/blob/trunk/iseq.c#L1663 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 *ise https://github.com/ruby/ruby/blob/trunk/iseq.c#L2949 } 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/