mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
39fd63428d
commit
bad9d2246f
1 changed files with 2 additions and 2 deletions
4
iseq.c
4
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;
|
||||
|
|
Loading…
Reference in a new issue