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


Hello,

I've got some code which compiles well on my Linux PC and works as expected.
But Jenkins don't calculate the same things on Windows and hang out in unit
test on Windows.
The code is about best fraction representation in Calc. I localized the
problem in this *while* loop :



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.

I suppose I made an error, but testing code is quite long with Jenkin (I
don't have a Windows PC which can compile LibO code). Does someone can give
me an opinion on what may go different between Linux and Windows with this
code?

All details of context and tests on https://gerrit.libreoffice.org/26621

Many thanks in advance.

Laurent BP



-----
LibreOffice 5.1.4.1
--
View this message in context: 
http://nabble.documentfoundation.org/Different-behavior-of-same-code-in-Linux-and-Windows-tp4187462.html
Sent from the Dev mailing list archive at Nabble.com.

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.