mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
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:
parent
380a5608aa
commit
006d7063b7
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue