]> granicus.if.org Git - icu/commitdiff
ICU-10439 add volatile as per StackOverflow:2219829 to work around what seems to...
authorSteven R. Loomis <srl@icu-project.org>
Wed, 25 Sep 2013 00:31:46 +0000 (00:31 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Wed, 25 Sep 2013 00:31:46 +0000 (00:31 +0000)
X-SVN-Rev: 34471

icu4c/source/i18n/decimfmt.cpp

index 10229d0301d021af42b4f5eb6ed72208e7adc557..4a0da8ed8bf25b92f05e9344ba393d033dadcab6 100644 (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.