# HG changeset patch # User Paper # Date 1721014782 14400 # Node ID 9aaf1e788896b6032af0909ea8c60cb9f81238aa # Parent 2f094656e775a185b6982f78659b7e41b085541b core/endian: fix compile error under clang diff -r 2f094656e775 -r 9aaf1e788896 include/core/endian.h --- a/include/core/endian.h Sun Jul 14 23:27:43 2024 -0400 +++ b/include/core/endian.h Sun Jul 14 23:39:42 2024 -0400 @@ -93,7 +93,7 @@ } else if constexpr (std::is_same::value) { return byteswap_64(x); } else { - static_assert(false, "byteswapping with unknown integer type"); + static_assert(!sizeof(T), "invalid integer type given to byteswap"); } } diff -r 2f094656e775 -r 9aaf1e788896 src/sys/x11/settings.cc --- a/src/sys/x11/settings.cc Sun Jul 14 23:27:43 2024 -0400 +++ b/src/sys/x11/settings.cc Sun Jul 14 23:39:42 2024 -0400 @@ -62,6 +62,7 @@ return true; } + /* will fail on signed integers; xsettings has none of those though */ template bool ReadInt(T& ret) { static_assert(std::is_integral::value);