aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-07-01 19:12:45 +0200
committerMattias Andrée <maandree@kth.se>2024-07-01 19:12:45 +0200
commite32e1c61ffc9763c4b512a38a6868a2509a7d68f (patch)
treed0ab576ebae357d9d811a93c18eaec87818622e3
parentProperly fix support for version of C before C11 (diff)
downloadlibsimple-e32e1c61ffc9763c4b512a38a6868a2509a7d68f.tar.gz
libsimple-e32e1c61ffc9763c4b512a38a6868a2509a7d68f.tar.bz2
libsimple-e32e1c61ffc9763c4b512a38a6868a2509a7d68f.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libsimple/aligned_allocz.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsimple/aligned_allocz.h b/libsimple/aligned_allocz.h
index eb8b34f..3137004 100644
--- a/libsimple/aligned_allocz.h
+++ b/libsimple/aligned_allocz.h
@@ -50,7 +50,7 @@ libsimple_aligned_allocz(int clear__, size_t alignment__, size_t n__)
memset(ret__, 0, n__);
return ret__;
#else
- if (!alignment__ || alignment__ % sizeof(void *))) {
+ if (!alignment__ || alignment__ % sizeof(void *)) {
errno = EINVAL;
return NULL;
}