ruby-changes:53917
From: ko1 <ko1@a...>
Date: Mon, 3 Dec 2018 07:01:33 +0900 (JST)
Subject: [ruby-changes:53917] ko1:r66137 (trunk): fix last commit (r66135)
ko1 2018-12-03 07:01:29 +0900 (Mon, 03 Dec 2018) New Revision: 66137 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66137 Log: fix last commit (r66135) Modified files: trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 66136) +++ regparse.c (revision 66137) @@ -5846,12 +5846,13 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L5846 Node **seq = node_array; /* seq[5] */ Node **alts = node_array+5; /* alts[4] */ - for (i=0; i<8; i++) - node_array[i] = NULL_NODE; /* UTF-8, UTF-16BE/LE, UTF-32BE/LE */ CClassNode* cc; OnigCodePoint sb_out = (ONIGENC_MBC_MINLEN(env->enc) > 1) ? 0x00 : 0x80; + for (i=0; i<8; i++) + node_array[i] = NULL_NODE; + if (propname2ctype(env, "Grapheme_Cluster_Break=Extend") < 0) goto err; /* main comment: The order of the code is backwards (compared to the * order the various expressions appear in the grammar) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/