]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
minor: fix overly cautious conversion warning
authorYann Collet <cyan@fb.com>
Sat, 24 Feb 2024 00:05:09 +0000 (16:05 -0800)
committerYann Collet <cyan@fb.com>
Sat, 24 Feb 2024 00:05:09 +0000 (16:05 -0800)
lib/compress/zstd_compress_superblock.c

index 239072623d60ef75a06bb1f08c82980194dd2143..d31bed32ef64e93e67d23a49a46860caf1f04bb9 100644 (file)
@@ -136,7 +136,7 @@ ZSTD_seqDecompressedSize(seqStore_t const* seqStore,
     size_t matchLengthSum = 0;
     size_t litLengthSum = 0;
     (void)(litLengthSum); /* suppress unused variable warning on some environments */
-    DEBUGLOG(6, "ZSTD_seqDecompressedSize (%u sequences from %p) (last==%i)", (unsigned)nbSeq, sp, lastSequence);
+    DEBUGLOG(6, "ZSTD_seqDecompressedSize (%u sequences from %p) (last==%i)", (unsigned)nbSeq, (const void*)sp, lastSequence);
     while (sp < send) {
         ZSTD_sequenceLength const seqLen = ZSTD_getSequenceLength(seqStore, sp);
         litLengthSum += seqLen.litLength;
@@ -428,7 +428,7 @@ static size_t countLiterals(seqStore_t const* seqStore, const seqDef* sp, size_t
     for (n=0; n<seqCount; n++) {
         total += ZSTD_getSequenceLength(seqStore, sp+n).litLength;
     }
-    DEBUGLOG(6, "countLiterals for %zu sequences from %p => %zu bytes", seqCount, sp, total);
+    DEBUGLOG(6, "countLiterals for %zu sequences from %p => %zu bytes", seqCount, (const void*)sp, total);
     return total;
 }