summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-10 12:31:18 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-10 12:31:18 +0000
commit6473d94df737d52852d954813d7874bd5da37907 (patch)
tree144620db16f8890694831d3f9f24dc3c066480f2 /compile.c
parent4f131605c30cf952240b97729cf74991801ce4c3 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index 9405e11057..27f4a9c21c 100644
--- a/compile.c
+++ b/compile.c
@@ -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);
}