Skip to content

Commit 27908ba

Browse files
committed
Reduce variable scope
1 parent 646dad6 commit 27908ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/intl/collator/collator_is_numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */
2525
const UChar *u = nptr, *nstart;
2626
UChar c = *u;
2727
int any = 0;
28-
ALLOCA_FLAG(use_heap);
2928

3029
while (u_isspace(c)) {
3130
c = *++u;
@@ -72,6 +71,7 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */
7271
char buf[64], *numbuf, *bufpos;
7372
size_t length = u - nstart;
7473
double value;
74+
ALLOCA_FLAG(use_heap);
7575

7676
if (length < sizeof(buf)) {
7777
numbuf = buf;

0 commit comments

Comments
 (0)