diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-10 12:31:18 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-10 12:31:18 +0000 |
commit | 6473d94df737d52852d954813d7874bd5da37907 (patch) | |
tree | 144620db16f8890694831d3f9f24dc3c066480f2 /compile.c | |
parent | 4f131605c30cf952240b97729cf74991801ce4c3 (diff) |
merge revision(s) 62621: [Backport #15396]
compile.c: do not truncate VALUE to long
* compile.c (ibf_dump_object_regexp): do not truncate VALUE to
long. it makes invalid VALUE on IL32LLP64 platforms where long
is shorter than VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@66309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8922,9 +8922,9 @@ static void ibf_dump_object_regexp(struct ibf_dump *dump, VALUE obj) { struct ibf_object_regexp regexp; - regexp.srcstr = RREGEXP_SRC(obj); + VALUE srcstr = RREGEXP_SRC(obj); regexp.option = (char)rb_reg_options(obj); - regexp.srcstr = (long)ibf_dump_object(dump, regexp.srcstr); + regexp.srcstr = (long)ibf_dump_object(dump, srcstr); IBF_WV(regexp); } |