From 27908bace1d39c28a3645d40eccc56f63349128a Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 15 Feb 2018 21:34:55 +0100 Subject: [PATCH] Reduce variable scope --- ext/intl/collator/collator_is_numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/intl/collator/collator_is_numeric.c b/ext/intl/collator/collator_is_numeric.c index e3535e7d4b..c60724bcfa 100644 --- a/ext/intl/collator/collator_is_numeric.c +++ b/ext/intl/collator/collator_is_numeric.c @@ -25,7 +25,6 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */ const UChar *u = nptr, *nstart; UChar c = *u; int any = 0; - ALLOCA_FLAG(use_heap); while (u_isspace(c)) { c = *++u; @@ -72,6 +71,7 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */ char buf[64], *numbuf, *bufpos; size_t length = u - nstart; double value; + ALLOCA_FLAG(use_heap); if (length < sizeof(buf)) { numbuf = buf; -- 2.40.0