ICU-10439 add volatile as per StackOverflow:2219829 to work around what seems to be an optimizer bug in GCC -m32 (at least GCC 4.4.7 and 4.8.1) - revisit in ICU-10420 and ilk.

X-SVN-Rev: 34471
This commit is contained in:
Steven R. Loomis 2013-09-25 00:31:46 +00:00
parent 380a5608aa
commit 006d7063b7

View file

@ -1078,7 +1078,7 @@ DecimalFormat::getFixedDecimal(const Formattable &number, UErrorCode &status) co
}
if (type == Formattable::kInt64) {
double fdv = number.getDouble(status);
volatile double fdv = number.getDouble(status);
// Note: conversion of int64_t -> double rounds with some compilers to
// values beyond what can be represented as a 64 bit int. Subsequent
// testing or conversion with int64_t produces bad results.