From 4aa952f678c6c3c64ef4be1fc825c53d3c9ef6ad Mon Sep 17 00:00:00 2001 From: k0kubun Date: Fri, 27 Jul 2018 06:01:46 +0000 Subject: [PATCH] mjit.c: clarify the intention of setting 0 which was originally NULL before r62221 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mjit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjit.c b/mjit.c index 525ccda967..15f798ad5d 100644 --- a/mjit.c +++ b/mjit.c @@ -539,7 +539,7 @@ static void free_unit(struct rb_mjit_unit *unit) { if (unit->iseq) /* ISeq is not GCed */ - unit->iseq->body->jit_func = 0; + unit->iseq->body->jit_func = (mjit_func_t)NOT_ADDED_JIT_ISEQ_FUNC; if (unit->handle) /* handle is NULL if it's in queue */ dlclose(unit->handle); clean_so_file(unit);