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

This commit is contained in:
Evgeny Grin (Karlson2k)
2019-06-13 19:00:24 +03:00
parent b9cba52041
commit 35d581d04f
+1 -1
View File
@@ -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))
/**