summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-12-06 01:57:33 +0100
committerEike Rathke <erack@redhat.com>2016-12-06 01:57:45 +0100
commit8a460cfa1b1ce01c7a479ce2e7f21a92a2c50de3 (patch)
tree2da9add233d0711b2dcaf54941579fb123a8a3e8
parent63bf040056b64e0bf32a36277c54deee566de4fc (diff)
try a volatile
Change-Id: Iadaeb1cdf8a73cac3308e82caa2e65db07ec0fc1
-rw-r--r--sc/source/filter/excel/xetable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index 8d3bcfe1756a..108f7f26128f 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -1696,7 +1696,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,