diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index fc4fe063b..aa6b0fd1b 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -1526,12 +1526,6 @@ ZSTDMT_serialState_reset(SerialState* serialState, ZSTD_dictContentType_e dictContentType) { ZSTDMT_serialResetContext context; - - /* Rust owns LDM normalization; retain the original diagnostic only. */ - if (params.ldmParams.enableLdm == ZSTD_ps_enable) { - DEBUGLOG(4, "LDM window size = %u KB", (1U << params.cParams.windowLog) >> 10); - } - ZSTDMT_RustSerialResetProjection const projection = { params.ldmParams.enableLdm, params.fParams.checksumFlag, @@ -1547,6 +1541,11 @@ ZSTDMT_serialState_reset(SerialState* serialState, sizeof(ldmEntry_t) }; + /* Rust owns LDM normalization; retain the original diagnostic only. */ + if (params.ldmParams.enableLdm == ZSTD_ps_enable) { + DEBUGLOG(4, "LDM window size = %u KB", (1U << params.cParams.windowLog) >> 10); + } + context.serialState = serialState; context.seqPool = seqPool; context.params = ¶ms;