Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Hi Laurent,

On Wednesday, 2016-06-29 05:19:43 -0700, Laurent BP wrote:

On Linux, *sal_uLong nFrac* and *nDev* are modified and tend to a solution.
My tests on Windows, thanks to Jenkin, show that *nFrac* and *nDev* keep the
same values (respectively 0 and 1). So there is an infinite loop with this
*while* when testing fractions in unit tests.

Try to make them sal_uInt64, as sal_uLong typedef'ed to sal_uIntPtr is
platform dependent and on Windows 32-bit is, well, 32-bit. If that still
fails try to make them volatile in case the compiler over-optimizes
things, or use double type.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack

Attachment: signature.asc
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.