diff --git a/compile.c b/compile.c index 18abaca22b..4cd1863e1b 100644 --- a/compile.c +++ b/compile.c @@ -8760,7 +8760,7 @@ ibf_load_iseq_each(const struct ibf_load *load, rb_iseq_t *iseq, ibf_offset_t of ISEQ_COVERAGE_SET(iseq, Qnil); ISEQ_ORIGINAL_ISEQ_CLEAR(iseq); - iseq->body->variable.flip_count = body->variable.flip_count; + iseq->body->variable.flip_count = (int)body->variable.flip_count; { VALUE realpath = Qnil, path = ibf_load_object(load, body->location.pathobj); diff --git a/iseq.h b/iseq.h index 0a0edd9b7a..a39d827670 100644 --- a/iseq.h +++ b/iseq.h @@ -35,10 +35,10 @@ rb_call_info_kw_arg_bytes(int keyword_len) #define ISEQ_FLIP_CNT(iseq) (iseq)->body->variable.flip_count -static inline rb_snum_t +static inline int ISEQ_FLIP_CNT_INCREMENT(const rb_iseq_t *iseq) { - rb_snum_t cnt = iseq->body->variable.flip_count; + int cnt = iseq->body->variable.flip_count; iseq->body->variable.flip_count += 1; return cnt; } diff --git a/vm_core.h b/vm_core.h index 9b8aede35c..24ecc9be54 100644 --- a/vm_core.h +++ b/vm_core.h @@ -412,7 +412,7 @@ struct rb_iseq_constant_body { struct rb_call_cache *cc_entries; /* size is ci_size = ci_kw_size */ struct { - rb_snum_t flip_count; + rb_num_t flip_count; VALUE coverage; VALUE original_iseq; } variable;