[Libreoffice] [PATCH] fix for crash in math.cxx for std::numeric_limits<int>::min
Kohei Yoshida
kohei.yoshida at suse.com
Tue Dec 13 05:06:51 PST 2011
On Tue, 2011-12-13 at 07:33 +0100, Lionel Elie Mamane wrote:
> For a signed integer in twos complement, that is true, except for the
> smallest representable (negative) number; it stems from the asymmetry
> of the range.
Thanks. I was aware of two's complement, but I just couldn't connect
the dots in this specific moment.
As Staphan suggested, some clarifying comment would make it a little
less surprising for the occasional unsuspecting visitors.
Kohei
--
Kohei Yoshida, LibreOffice hacker, Calc
More information about the LibreOffice
mailing list