summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mjit_worker.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 160b8cf..461b10f 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -1267,10 +1267,10 @@ mjit_capture_cc_entries(const struct rb_iseq_constant_body *compiled_iseq, const
const struct rb_callcache *cc = cc_entries[i];
if (cc && vm_cc_markable(cc)) {
- assert(BUILTIN_TYPE(cc) != T_MOVED);
- assert(BUILTIN_TYPE(vm_cc_cme(cc)) != T_MOVED);
- assert(!rb_objspace_garbage_object_p(cc));
- assert(!rb_objspace_garbage_object_p(vm_cc_cme(cc)));
+ assert(BUILTIN_TYPE((VALUE)cc) != T_MOVED);
+ assert(BUILTIN_TYPE((VALUE)vm_cc_cme(cc)) != T_MOVED);
+ assert(!rb_objspace_garbage_object_p((VALUE)cc));
+ assert(!rb_objspace_garbage_object_p((VALUE)vm_cc_cme(cc)));
}
}