ruby-changes:50488
From: nobu <ko1@a...>
Date: Thu, 1 Mar 2018 17:00:04 +0900 (JST)
Subject: [ruby-changes:50488] nobu:r62621 (trunk): compile.c: do not truncate VALUE to long
nobu 2018-03-01 16:59:57 +0900 (Thu, 01 Mar 2018) New Revision: 62621 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62621 Log: 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. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 62620) +++ compile.c (revision 62621) @@ -8979,9 +8979,9 @@ static void https://github.com/ruby/ruby/blob/trunk/compile.c#L8979 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/