From: Jeff Genovy <29107334+jefgen@users.noreply.github.com> Date: Fri, 6 Oct 2017 20:32:13 +0000 (+0000) Subject: ICU-13177 Fix warnings reintroduced by the NumberFormatting work. X-Git-Tag: release-60-rc~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97901d274ee936669a95a38ff46eac31977f5bd1;p=icu ICU-13177 Fix warnings reintroduced by the NumberFormatting work. X-SVN-Rev: 40593 --- diff --git a/icu4c/source/i18n/plurrule.cpp b/icu4c/source/i18n/plurrule.cpp index 42e1f64e14d..48b7976baf3 100644 --- a/icu4c/source/i18n/plurrule.cpp +++ b/icu4c/source/i18n/plurrule.cpp @@ -1620,9 +1620,9 @@ void FixedDecimal::adjustForMinFractionDigits(int32_t minFractionDigits) { double FixedDecimal::getPluralOperand(PluralOperand operand) const { switch(operand) { case PLURAL_OPERAND_N: return source; - case PLURAL_OPERAND_I: return intValue; - case PLURAL_OPERAND_F: return decimalDigits; - case PLURAL_OPERAND_T: return decimalDigitsWithoutTrailingZeros; + case PLURAL_OPERAND_I: return static_cast(intValue); + case PLURAL_OPERAND_F: return static_cast(decimalDigits); + case PLURAL_OPERAND_T: return static_cast(decimalDigitsWithoutTrailingZeros); case PLURAL_OPERAND_V: return visibleDecimalDigitCount; default: U_ASSERT(FALSE); // unexpected.