From 41ad7332dd59ed9081cee345bd95e080cb96b199 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 4 Jan 2022 09:07:11 -0800 Subject: [PATCH] Updated expression for better readability --- lib/compress/zstd_cwksp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/compress/zstd_cwksp.h b/lib/compress/zstd_cwksp.h index 468b06da0..dc3f40c80 100644 --- a/lib/compress/zstd_cwksp.h +++ b/lib/compress/zstd_cwksp.h @@ -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, "table phase - alignment initial allocation failed!"); ws->objectEnd = objectEnd; - ws->tableEnd = objectEnd; - if (ws->tableEnd > ws->tableValidEnd) ws->tableValidEnd = objectEnd; - } - } + ws->tableEnd = objectEnd; /* table area starts being empty */ + if (ws->tableValidEnd < ws->tableEnd) { + ws->tableValidEnd = ws->tableEnd; + } } } ws->phase = phase; ZSTD_cwksp_assert_internal_consistency(ws); } -- 2.47.2