summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 05:44:12 (GMT)
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 05:44:12 (GMT)
commitbad9d2246ff294e7471fd5a9f06117714585bc95 (patch)
tree4c5aebeaa55722292f2f57d42b12b212cf896b93 /iseq.c
parent39fd63428d5c338bf34750e5762d55dc489c3b7a (diff)
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
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index c31a0a2..962186d 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;