unoidl/source/unoidl-write.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1037edf4ec9bd2d17b2b39aab47a162b17335b96 Author: Stephan Bergmann <[email protected]> AuthorDate: Wed Feb 28 14:29:02 2024 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Wed Feb 28 15:47:03 2024 +0100 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 <[email protected]> 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
