summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-01 07:59:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-01 07:59:57 +0000
commitb001766b080a3572a7fae94aa0b8ab0b0a0f3ee2 (patch)
tree08d1dc4ecdfd3f5bb6c100788e17db255b07a965
parentc9ecea33dafa7aea3682f32f651fa9a6aa85b1ac (diff)
downloadbundler-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index 111aef5293..87c2d7a856 100644
--- a/compile.c
+++ b/compile.c
@@ -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);
}