[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - sc/source

Eike Rathke erack at redhat.com
Tue Dec 6 01:09:22 UTC 2016


 sc/source/filter/excel/xetable.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 04955146239b89b4c05d1ee3c50cf672646e4184
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Dec 6 01:57:33 2016 +0100

    try a volatile
    
    Change-Id: Iadaeb1cdf8a73cac3308e82caa2e65db07ec0fc1
    (cherry picked from commit 8a460cfa1b1ce01c7a479ce2e7f21a92a2c50de3)
    Reviewed-on: https://gerrit.libreoffice.org/31662
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index 239c9a6..355e1a1 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -1695,7 +1695,7 @@ void XclExpColinfo::SaveXml( XclExpXmlStream& rStrm )
     // something optimized away or into.. yes that was significant in a
     // Linux-rpm_deb-x86_71-TDF tinderbox build that oddly produced 24.23
     // instead of 24 in a test case but only for 5-2 ...
-    const sal_Int32 nTruncatedInt = static_cast<sal_Int32>(std::trunc( nExcelColumnWidth * 100.0 + 0.5 ));
+    volatile sal_Int32 nTruncatedInt = static_cast<sal_Int32>(std::trunc( nExcelColumnWidth * 100.0 + 0.5 ));
     const double nTruncatedExcelColumnWidth = static_cast<double>(nTruncatedInt) / 100.0;
 
     rStrm.GetCurrentStream()->singleElement( XML_col,


More information about the Libreoffice-commits mailing list