Updated expression for better readability

This commit is contained in:
Yann Collet 2022-01-04 09:07:11 -08:00
parent 8c53e526db
commit 41ad7332dd

View File

@ -306,10 +306,10 @@ ZSTD_cwksp_internal_advance_phase(ZSTD_cwksp* ws, ZSTD_cwksp_alloc_phase_e phase
RETURN_ERROR_IF(objectEnd > ws->workspaceEnd, memory_allocation, RETURN_ERROR_IF(objectEnd > ws->workspaceEnd, memory_allocation,
"table phase - alignment initial allocation failed!"); "table phase - alignment initial allocation failed!");
ws->objectEnd = objectEnd; ws->objectEnd = objectEnd;
ws->tableEnd = objectEnd; ws->tableEnd = objectEnd; /* table area starts being empty */
if (ws->tableEnd > ws->tableValidEnd) ws->tableValidEnd = objectEnd; if (ws->tableValidEnd < ws->tableEnd) {
} ws->tableValidEnd = ws->tableEnd;
} } } }
ws->phase = phase; ws->phase = phase;
ZSTD_cwksp_assert_internal_consistency(ws); ZSTD_cwksp_assert_internal_consistency(ws);
} }