[前][次][番号順一覧][スレッド一覧]

ruby-changes:60295

From: Nobuyoshi <ko1@a...>
Date: Wed, 4 Mar 2020 23:20:29 +0900 (JST)
Subject: [ruby-changes:60295] 364526cd70 (master): [win32] suppress false warning by MSVC

https://git.ruby-lang.org/ruby.git/commit/?id=364526cd70

From 364526cd70764e3f8f9137d7782ae36d5d8fe448 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 4 Mar 2020 21:02:24 +0900
Subject: [win32] suppress false warning by MSVC


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) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L428
         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());
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]