diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-01 07:59:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-01 07:59:57 +0000 |
commit | b001766b080a3572a7fae94aa0b8ab0b0a0f3ee2 (patch) | |
tree | 08d1dc4ecdfd3f5bb6c100788e17db255b07a965 | |
parent | c9ecea33dafa7aea3682f32f651fa9a6aa85b1ac (diff) | |
download | bundler-b001766b080a3572a7fae94aa0b8ab0b0a0f3ee2.tar.gz |
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/trunk@62621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8979,9 +8979,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); } |