From: Yann Collet Date: Tue, 28 Dec 2021 19:58:33 +0000 (-0800) Subject: abstracted storeSeq() sumtype numeric representation from decodecorpus.c X-Git-Tag: v1.5.2^2~21^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=681c81f06c313eed276283c141d0c14e9404b4fa;p=thirdparty%2Fzstd.git abstracted storeSeq() sumtype numeric representation from decodecorpus.c --- 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 */