Skip to content

Commit e0792c2

Browse files
committed
- wrong variable used (ended as non initiazed usage)
1 parent 7170a99 commit e0792c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/intl/formatter/formatter_attr.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ PHP_FUNCTION( numfmt_get_attribute )
7777
break;
7878
case UNUM_ROUNDING_INCREMENT:
7979
{
80-
double value = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute);
81-
if(value == -1) {
80+
double value_double = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute);
81+
if(value_double == -1) {
8282
INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR;
8383
} else {
84-
RETVAL_DOUBLE(value);
84+
RETVAL_DOUBLE(value_double);
8585
}
8686
}
8787
break;

0 commit comments

Comments
 (0)