mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
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
826 B
826 B