libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 35d581d04fcfbd2052babcb35b9251af938c9e3e
parent b9cba520417ae7b01bbd59b16a4b180eab3338ae
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 13 Jun 2019 19:00:24 +0300

memorypool: correctly support exotic platform where size of pointer is not power of two

Diffstat:
Msrc/microhttpd/memorypool.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c @@ -54,7 +54,7 @@ /** * Round up 'n' to a multiple of ALIGN_SIZE. */ -#define ROUND_TO_ALIGN(n) (((n)+(ALIGN_SIZE-1)) & (~(ALIGN_SIZE-1))) +#define ROUND_TO_ALIGN(n) (((n)+(ALIGN_SIZE-1)) / (ALIGN_SIZE) * (ALIGN_SIZE)) /**