diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-02-28 14:29:02 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-02-28 15:47:03 +0100 |
commit | 1037edf4ec9bd2d17b2b39aab47a162b17335b96 (patch) | |
tree | 1d86117771e64c7a8ac64a415f1fd25386d564b3 | |
parent | c7664873f8aff4e1fa4f857e87821a49f858a73b (diff) |
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.cxx | 2 |
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 |