Files
xserver/os
Alan Coopersmith 2a41522349 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>
2026-01-01 13:23:22 +01:00
..
2025-09-29 10:53:15 +02:00
2025-09-22 12:00:14 +02:00
2024-10-10 13:38:31 +00:00
2025-07-18 22:24:55 +02:00
2025-12-13 15:59:07 +01:00
2025-06-12 17:21:44 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 17:21:44 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:49:45 +02:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00