Files
nixpkgs/pkgs/by-name/ac/ac-library/fix-char-signedness-tests.patch
Chahatpreet Singh c6ddfcd3f6 ac-library: fix tests on platforms where char is unsigned
The type_traits_test asserts `to_unsigned_t<char>` resolves to
`unsigned char`, which only holds on platforms where `char` is signed
(e.g. x86_64-linux). On platforms where `char` is unsigned by default
(e.g. aarch64-linux), `to_unsigned_t<char>` resolves to `char`, and
the static_assert fails to compile.

Guard the assertion with `CHAR_MIN < 0` so the correct relationship
is checked on each platform.

Also drop `-Wno-character-conversion` from NIX_CFLAGS_COMPILE since
GCC 15 does not recognize it (the build log shows it being reported
as an unrecognized command-line option).

Reported upstream: https://github.com/atcoder/ac-library/issues/191

ZHF: #516381
2026-05-08 21:14:09 +00:00

826 B