summaryrefslogtreecommitdiff
path: root/src/malloc/aligned_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc/aligned_alloc.c')
-rw-r--r--src/malloc/aligned_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc/aligned_alloc.c b/src/malloc/aligned_alloc.c
index 158dba41..c6386629 100644
--- a/src/malloc/aligned_alloc.c
+++ b/src/malloc/aligned_alloc.c
@@ -11,7 +11,7 @@ void *aligned_alloc(size_t align, size_t len)
unsigned char *mem, *new, *end;
size_t header, footer;
- if ((align & -align & -sizeof(void *)) != align) {
+ if ((align & -align) != align) {
errno = EINVAL;
return NULL;
}