Files
xserver/os
Alan Coopersmith 3eac9393d7 os: make FormatInt64() handle LONG_MIN correctly
When compiling with gcc 15.2.0 using -O3 -m64 on Solaris SPARC & x64,
we'd get a test failure of:

Assertion failed: strcmp(logmsg, expected) == 0,
 file ../test/signal-logging.c, line 339, function logging_format

because 'num *= 1' produced a value that was out of the range of the
int64_t it was being stored in.  (Compiling with -O2 worked fine with
the same compiler/configuration/platform though.)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2117>
(cherry picked from commit 7f68b58865)
2026-01-25 10:40:03 -08:00
..
2026-01-25 10:39:53 -08:00
2026-01-25 10:39:53 -08:00
2026-01-19 12:47:57 -08:00
2026-01-25 10:40:02 -08:00
2016-07-21 15:04:47 -04:00
2026-01-19 12:32:20 -08:00
2013-10-31 16:58:12 -07:00