ICU-10273 fix for Solaris build error in plural rules (hopefully).

X-SVN-Rev: 34109
This commit is contained in:
Andy Heninger 2013-08-28 23:50:29 +00:00
parent 2c580225a6
commit 3b26d31728

View File

@ -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 {