From ca21d3f3049bb69233e0920a523160828a54cbfd Mon Sep 17 00:00:00 2001 From: Yurii Nakonechnyi Date: Mon, 23 Jun 2025 23:15:37 +0300 Subject: [PATCH] Update crc32c_round_up.h - gcc :: -Werror=sign-conversion supression --- src/crc32c_round_up.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crc32c_round_up.h b/src/crc32c_round_up.h index d3b922b..2b3ef4d 100644 --- a/src/crc32c_round_up.h +++ b/src/crc32c_round_up.h @@ -16,7 +16,7 @@ namespace crc32c { template constexpr inline uintptr_t RoundUp(uintptr_t pointer) { static_assert((N & (N - 1)) == 0, "N must be a power of two"); - return (pointer + (N - 1)) & ~(N - 1); + return (pointer + (N - 1)) & ~static_cast(N - 1); } // Returns the smallest address >= the given address that is aligned to N bytes.