calc: jumbo sheets on windows (never gonna happen)

Michael Stahl mst at libreoffice.org
Fri Oct 9 09:01:28 UTC 2020


On 08.10.20 21:13, Noel Grandin wrote:
> 
> As some point we are going to have to deal with this "long" stuff, it 
> really is not a great thing to have one 64-bit platform operating at 
> half the bit-size of the other platform.
> 
> Here is one option:
> 
> (a) create some new typedef, something like the old sal_Long, aliased to 
> "long"
> (b) replace "long" with typedef in stages (so no functional change).
> (c) switch the typedef of sal_Long to point to sal_Int64 and fix fallout.
> 
> Then rolling back (even if temporarily) is easy and the "flag day" is a 
> 2 line change.

POSIX provides ssize_t for this purpose but likely it doesn't exist on 
MSVC...

is std::make_signed_t<size_t> an option?


More information about the LibreOffice mailing list