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

ruby-changes:58869

From: Koichi <ko1@a...>
Date: Thu, 21 Nov 2019 04:39:28 +0900 (JST)
Subject: [ruby-changes:58869] 1197a036ae (master): Add a proper cast to pass JIT tests on mswin.

https://git.ruby-lang.org/ruby.git/commit/?id=1197a036ae

From 1197a036ae1c48ac0842bb2a0dc8af213def47d7 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Thu, 21 Nov 2019 04:37:29 +0900
Subject: Add a proper cast to pass JIT tests on mswin.

https://ci.appveyor.com/project/ruby/ruby/builds/29001248/job/ye80bsrmewdgw294

diff --git a/mjit_compile.c b/mjit_compile.c
index c31588d..f379a89 100644
--- a/mjit_compile.c
+++ b/mjit_compile.c
@@ -295,7 +295,7 @@ mjit_compile_body(FILE *f, const rb_iseq_t *iseq, struct compile_status *status) https://github.com/ruby/ruby/blob/trunk/mjit_compile.c#L295
         fprintf(f, "    VALUE *stack = reg_cfp->sp;\n");
     }
     if (status->inlined_iseqs != NULL) // i.e. compile root
-        fprintf(f, "    static const rb_iseq_t *original_iseq = 0x%"PRIxVALUE";\n", (VALUE)iseq);
+        fprintf(f, "    static const rb_iseq_t *original_iseq = (const rb_iseq_t *)0x%"PRIxVALUE";\n", (VALUE)iseq);
     fprintf(f, "    static const VALUE *const original_body_iseq = (VALUE *)0x%"PRIxVALUE";\n",
             (VALUE)body->iseq_encoded);
 
-- 
cgit v0.10.2


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

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