gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/02: memorypool: correctly support exotic


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: memorypool: correctly support exotic platform where size of pointer is not power of two
Date: Thu, 13 Jun 2019 18:18:45 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 35d581d04fcfbd2052babcb35b9251af938c9e3e
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu Jun 13 19:00:24 2019 +0300

    memorypool: correctly support exotic platform where size of pointer is not 
power of two
---
 src/microhttpd/memorypool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@
 /**
  * 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))
 
 
 /**

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]