summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-27 06:01:46 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-27 06:01:46 +0000
commit4aa952f678c6c3c64ef4be1fc825c53d3c9ef6ad (patch)
tree591711a07997c61d0786b47604661e75c48e043b
parent51f948727d8e76418fc1d1f31a3f5b9d324eb979 (diff)
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
-rw-r--r--mjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index 525ccda..15f798a 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);