diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-06-13 19:00:24 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-06-13 19:00:24 +0300 |
commit | 35d581d04fcfbd2052babcb35b9251af938c9e3e (patch) | |
tree | 504c59be84850826eddb4a44f762e3284c5c1c69 | |
parent | b9cba520417ae7b01bbd59b16a4b180eab3338ae (diff) | |
download | libmicrohttpd-35d581d04fcfbd2052babcb35b9251af938c9e3e.tar.gz libmicrohttpd-35d581d04fcfbd2052babcb35b9251af938c9e3e.zip |
memorypool: correctly support exotic platform where size of pointer is not power of two
-rw-r--r-- | src/microhttpd/memorypool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c index 12a22f22..5f532b83 100644 --- a/src/microhttpd/memorypool.c +++ b/src/microhttpd/memorypool.c | |||
@@ -54,7 +54,7 @@ | |||
54 | /** | 54 | /** |
55 | * Round up 'n' to a multiple of ALIGN_SIZE. | 55 | * Round up 'n' to a multiple of ALIGN_SIZE. |
56 | */ | 56 | */ |
57 | #define ROUND_TO_ALIGN(n) (((n)+(ALIGN_SIZE-1)) & (~(ALIGN_SIZE-1))) | 57 | #define ROUND_TO_ALIGN(n) (((n)+(ALIGN_SIZE-1)) / (ALIGN_SIZE) * (ALIGN_SIZE)) |
58 | 58 | ||
59 | 59 | ||
60 | /** | 60 | /** |