summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-02-28 14:29:02 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-02-28 15:47:03 +0100
commit1037edf4ec9bd2d17b2b39aab47a162b17335b96 (patch)
tree1d86117771e64c7a8ac64a415f1fd25386d564b3
parenttdf#159467 XLOOKUP propagate error only for active paths (diff)
downloadcore-1037edf4ec9bd2d17b2b39aab47a162b17335b96.tar.gz
core-1037edf4ec9bd2d17b2b39aab47a162b17335b96.zip
Fix copy/paste error
...that had caused unoidl-write to generate garbage values when writing constants of type double to binary type libraries. (But which had apparently gone largely unnoticed until now, as the only actual use so far of such a constant of type double that I could find is > const double aConstDouble = 3.14e-10; in the unused stoc/test/testcorefl.idl test file.) Change-Id: I9a6fdb7a4aaff1008b8264cbbc64a84e60bd3813 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164096 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
-rw-r--r--unoidl/source/unoidl-write.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoidl/source/unoidl-write.cxx b/unoidl/source/unoidl-write.cxx
index 042b72c0471e..39a16f6c116c 100644
--- a/unoidl/source/unoidl-write.cxx
+++ b/unoidl/source/unoidl-write.cxx
@@ -188,7 +188,7 @@ void writeIso60599Binary32(osl::File & file, float value) {
void writeIso60599Binary64(osl::File & file, double value) {
union {
unsigned char buf[8];
- float d; // assuming double is ISO 60599 binary64
+ double d; // assuming double is ISO 60599 binary64
} sa;
sa.d = value;
#if defined OSL_BIGENDIAN