diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 05:42:06 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 05:42:06 +0000 |
commit | 4058446709f6907d3446787efdb305c64a2a1ef4 (patch) | |
tree | 4b16acf01b6079779eb98fe73eefb586437e0bcf /compile.c | |
parent | 3528b6a9a972992fce1a257469afdd7af5914455 (diff) | |
download | ruby-4058446709f6907d3446787efdb305c64a2a1ef4.tar.gz |
RSTRING_PTR is not guaranteed to be VALUE-aligned (retry)
Don't abuse struct RString to hold arbitrary memory region.
Raw pointer should just suffice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8929,7 +8929,7 @@ ibf_dump_iseq_each(struct ibf_dump *dump, const rb_iseq_t *iseq) dump_body.ci_entries = ibf_dump_ci_entries(dump, iseq); dump_body.cc_entries = NULL; dump_body.variable.coverage = Qnil; - dump_body.variable.original_iseq = Qnil; + dump_body.variable.original_iseq = NULL; IBF_W_ALIGN(struct rb_iseq_constant_body); return IBF_WV(dump_body); |