1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix strict compile errors

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2019-04-20 03:00:08 +00:00
parent c784da1744
commit 79accaf8d4
2 changed files with 3 additions and 3 deletions

4
mjit.c
View file

@ -118,7 +118,7 @@ mjit_update_references(const rb_iseq_t *iseq)
return;
CRITICAL_SECTION_START(4, "mjit_free_iseq");
if (iseq->body->jit_unit) {
iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_new_location(iseq->body->jit_unit->iseq);
iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_new_location((VALUE)iseq->body->jit_unit->iseq);
}
CRITICAL_SECTION_FINISH(4, "mjit_free_iseq");
}
@ -236,7 +236,7 @@ create_unit(const rb_iseq_t *iseq)
return;
unit->id = current_unit_num++;
unit->iseq = iseq;
unit->iseq = (rb_iseq_t *)iseq;
iseq->body->jit_unit = unit;
}

View file

@ -128,7 +128,7 @@ struct rb_mjit_unit {
int id;
// Dlopen handle of the loaded object file.
void *handle;
const rb_iseq_t *iseq;
rb_iseq_t *iseq;
#ifndef _MSC_VER
// This value is always set for `compact_all_jit_code`. Also used for lazy deletion.
char *o_file;