From 1197a036ae1c48ac0842bb2a0dc8af213def47d7 Mon Sep 17 00:00:00 2001 From: Koichi Sasada 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 --- mjit_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjit_compile.c b/mjit_compile.c index c31588d13e..f379a896a8 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) 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 v1.2.3