]> granicus.if.org Git - icu/commitdiff
ICU-13177 Fix warnings reintroduced by the NumberFormatting work.
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Fri, 6 Oct 2017 20:32:13 +0000 (20:32 +0000)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Fri, 6 Oct 2017 20:32:13 +0000 (20:32 +0000)
X-SVN-Rev: 40593

icu4c/source/i18n/plurrule.cpp

index 42e1f64e14d718313f727b73f2c30a4cce02b94e..48b7976baf388f5b465aa10ab79cbdc3c2b25b61 100644 (file)
@@ -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<double>(intValue);
+        case PLURAL_OPERAND_F: return static_cast<double>(decimalDigits);
+        case PLURAL_OPERAND_T: return static_cast<double>(decimalDigitsWithoutTrailingZeros);
         case PLURAL_OPERAND_V: return visibleDecimalDigitCount;
         default:
              U_ASSERT(FALSE);  // unexpected.