Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crc32c_round_up.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace crc32c {
template <int N>
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<uintptr_t>(N - 1);
}

// Returns the smallest address >= the given address that is aligned to N bytes.
Expand Down