changed macro name to ZSTD_ALIGNOF

for better consistency
This commit is contained in:
Yann Collet
2021-12-02 12:57:42 -08:00
parent 1d025d871b
commit 30b9db8ae4
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -422,8 +422,8 @@ MEM_STATIC void* ZSTD_cwksp_reserve_object(ZSTD_cwksp* ws, size_t bytes) {
DEBUGLOG(5,
"cwksp: reserving %p object %zd bytes (rounded to %zd), %zd bytes remaining",
alloc, bytes, roundedBytes, ZSTD_cwksp_available_space(ws) - roundedBytes);
assert((size_t)alloc % MEM_ALIGN_COND(void*) == 0);
assert(bytes % MEM_ALIGN_COND(void*) == 0);
assert((size_t)alloc % ZSTD_ALIGNOF(void*) == 0);
assert(bytes % ZSTD_ALIGNOF(void*) == 0);
ZSTD_cwksp_assert_internal_consistency(ws);
/* we must be in the first phase, no advance is possible */
if (ws->phase != ZSTD_cwksp_alloc_objects || end > ws->workspaceEnd) {