Skip to content

Commit

Permalink
Clang-tidy fixes really.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 committed Jul 31, 2023
1 parent ce14302 commit 21ea2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snmalloc/override/libc.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ namespace snmalloc::libc

inline void* memalign(size_t alignment, size_t size)
{
if (alignment < sizeof(uintptr_t) || bits::is_pow2(alignment))
if (alignment < sizeof(uintptr_t) || !bits::is_pow2(alignment))
{
return set_error(EINVAL);
}
Expand All @@ -164,7 +164,7 @@ namespace snmalloc::libc

inline int posix_memalign(void** memptr, size_t alignment, size_t size)
{
if ((alignment < sizeof(uintptr_t) || bits::is_pow2(alignment)))
if ((alignment < sizeof(uintptr_t) || !bits::is_pow2(alignment)))
{
return EINVAL;
}
Expand Down

0 comments on commit 21ea2d1

Please sign in to comment.