aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 05:42:06 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 05:42:06 +0000
commit4058446709f6907d3446787efdb305c64a2a1ef4 (patch)
tree4b16acf01b6079779eb98fe73eefb586437e0bcf /compile.c
parent3528b6a9a972992fce1a257469afdd7af5914455 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 4fa3e473e2..5b5d645c07 100644
--- a/compile.c
+++ b/compile.c
@@ -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);