Different behavior of same code in Linux and Windows

Noel Grandin noelgrandin at gmail.com
Thu Jun 30 06:51:35 UTC 2016


Under Windows, the Fraction class uses 32-bit calculations (because long is
32-bit on Windows), while on Linux it uses 64-bit values (because long is
64-bit  on 64-bit Linux)​

Which is a right stuffup, and I don't know how to fix it without cascading
changes throughout the codebase.
Lots of places in VCL, for example, using the Fraction class, and declare
various fields as long.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20160630/136842f6/attachment.html>


More information about the LibreOffice mailing list