We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7170a99 commit e0792c2Copy full SHA for e0792c2
ext/intl/formatter/formatter_attr.c
@@ -77,11 +77,11 @@ PHP_FUNCTION( numfmt_get_attribute )
77
break;
78
case UNUM_ROUNDING_INCREMENT:
79
{
80
- double value = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute);
81
- if(value == -1) {
+ double value_double = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute);
+ if(value_double == -1) {
82
INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR;
83
} else {
84
- RETVAL_DOUBLE(value);
+ RETVAL_DOUBLE(value_double);
85
}
86
87
0 commit comments