ruby-changes:46500
From: nobu <ko1@a...>
Date: Tue, 9 May 2017 23:11:49 +0900 (JST)
Subject: [ruby-changes:46500] nobu:r58621 (trunk): string.c: fix r58618
nobu 2017-05-09 23:11:46 +0900 (Tue, 09 May 2017) New Revision: 58621 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58621 Log: string.c: fix r58618 * string.c (unicode_normalize_common): aggregation type cannot be initialized with dynamic values, in C89. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 58620) +++ string.c (revision 58621) @@ -9592,12 +9592,13 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/string.c#L9592 unicode_normalize_common(int argc, VALUE *argv, VALUE str, ID id) { static int UnicodeNormalizeRequired = 0; - VALUE argv2[2] = { str }; + VALUE argv2[2]; if (!UnicodeNormalizeRequired) { rb_require("unicode_normalize/normalize.rb"); UnicodeNormalizeRequired = 1; } + argv2[0] = str; rb_scan_args(argc, argv, "01", &argv2[1]); return rb_funcallv(mUnicodeNormalize, id, argc+1, argv2); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/