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.