From 681c81f06c313eed276283c141d0c14e9404b4fa Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 28 Dec 2021 11:58:33 -0800 Subject: [PATCH] abstracted storeSeq() sumtype numeric representation from decodecorpus.c --- tests/decodecorpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index ab5911098..1037a3659 100644 --- a/tests/decodecorpus.c +++ b/tests/decodecorpus.c @@ -751,7 +751,7 @@ generateSequences(U32* seed, frame_t* frame, seqStore_t* seqStore, DISPLAYLEVEL(7, " srcPos: %8u seqNb: %3u", (unsigned)((BYTE*)srcPtr - (BYTE*)frame->srcStart), (unsigned)i); DISPLAYLEVEL(6, "\n"); - if (offsetCode < ZSTD_REP_NUM) { /* expects @offsetCode to use 0-2 to represents repCodes */ + if (STORED_IS_REPCODE(offsetCode)) { /* expects sumtype numeric representation of ZSTD_storeSeq() */ DISPLAYLEVEL(7, " repeat offset: %d\n", (int)repIndex); } /* use libzstd sequence handling */ -- 2.47.3