fix order of declarations and code at start of node_extended_grapheme_cluster()

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
duerst 2018-12-02 22:05:36 +00:00
parent d80bf2f1e7
commit 4a8531db5d

View File

@ -5843,12 +5843,11 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env)
#ifdef USE_UNICODE_PROPERTIES
if (ONIGENC_IS_UNICODE(env->enc)) {
Node **seq = node_array; /* seq[5] */
Node **alts = node_array+5; /* alts[4] */
/* UTF-8, UTF-16BE/LE, UTF-32BE/LE */
CClassNode* cc;
OnigCodePoint sb_out = (ONIGENC_MBC_MINLEN(env->enc) > 1) ? 0x00 : 0x80;
Node **seq = node_array; /* seq[5] */
Node **alts = node_array+5; /* alts[4] */
for (i=0; i<8; i++)
node_array[i] = NULL_NODE;