]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
abstracted storeSeq() sumtype numeric representation from decodecorpus.c
authorYann Collet <cyan@fb.com>
Tue, 28 Dec 2021 19:58:33 +0000 (11:58 -0800)
committerYann Collet <cyan@fb.com>
Tue, 28 Dec 2021 19:58:33 +0000 (11:58 -0800)
tests/decodecorpus.c

index ab59110985fd824451991af51fd8b9fc7bda8a6e..1037a36596ca636b1522b764339530e5b59e9e0b 100644 (file)
@@ -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 */