aboutsummaryrefslogtreecommitdiffstats
path: root/mjit_compile.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-11-21 04:37:29 +0900
committerKoichi Sasada <ko1@atdot.net>2019-11-21 04:38:40 +0900
commit1197a036ae1c48ac0842bb2a0dc8af213def47d7 (patch)
treed41cc8aba4bc5fe774165116b91558688afcc7fc /mjit_compile.c
parenteee70b41d4c04caa06a68cc4847a600eb7322cb8 (diff)
downloadruby-1197a036ae1c48ac0842bb2a0dc8af213def47d7.tar.gz
Add a proper cast to pass JIT tests on mswin.
https://ci.appveyor.com/project/ruby/ruby/builds/29001248/job/ye80bsrmewdgw294
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c2
1 files changed, 1 insertions, 1 deletions
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);