summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 12:02:24 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 12:02:24 (GMT)
commit364526cd70764e3f8f9137d7782ae36d5d8fe448 (patch)
tree27595fa22ca4fb94b169796297903b34cc3c72c3 /mjit_worker.c
parent502d9bcd36a6cd31e925de00bbae861bfe3f78fd (diff)
[win32] suppress false warning by MSVC
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index ec9d27c..fcc75a3 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -428,7 +428,8 @@ free_unit(struct rb_mjit_unit *unit)
unit->iseq->body->jit_unit = NULL;
}
if (unit->cc_entries) {
- free(unit->cc_entries);
+ void *entries = (void *)unit->cc_entries;
+ free(entries);
}
if (unit->handle && dlclose(unit->handle)) { // handle is NULL if it's in queue
mjit_warning("failed to close handle for u%d: %s", unit->id, dlerror());