mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
memorypool: correctly support exotic platform where size of pointer is not power of two
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user