From 3b26d317286b2097f4af4cec37f3510f9f6fdf55 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Wed, 28 Aug 2013 23:50:29 +0000 Subject: [PATCH] ICU-10273 fix for Solaris build error in plural rules (hopefully). X-SVN-Rev: 34109 --- icu4c/source/i18n/plurrule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/i18n/plurrule.cpp b/icu4c/source/i18n/plurrule.cpp index 6295a3d5ea0..ad092ef3adc 100644 --- a/icu4c/source/i18n/plurrule.cpp +++ b/icu4c/source/i18n/plurrule.cpp @@ -1420,7 +1420,7 @@ int64_t FixedDecimal::getFractionalDigits(double n, int32_t v) { case 2: return (int64_t)(fract*100.0 + 0.5); case 3: return (int64_t)(fract*1000.0 + 0.5); default: - double scaled = floor(fract * pow(10, v) + 0.5); + double scaled = floor(fract * pow(10.0, v) + 0.5); if (scaled > INT64_MAX) { return INT64_MAX; } else { -- 2.40.0