From 8d4506bc9463607725e43131b71b2f09b7e1109d Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 10 Dec 2024 11:27:03 -0800 Subject: [PATCH] codemod: ZSTD_sequenceLength -> ZSTD_SequenceLength --- lib/compress/zstd_compress_internal.h | 8 ++++---- lib/compress/zstd_compress_superblock.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/compress/zstd_compress_internal.h b/lib/compress/zstd_compress_internal.h index 121885e6c..92812192f 100644 --- a/lib/compress/zstd_compress_internal.h +++ b/lib/compress/zstd_compress_internal.h @@ -121,15 +121,15 @@ typedef struct { typedef struct { U32 litLength; U32 matchLength; -} ZSTD_sequenceLength; +} ZSTD_SequenceLength; /** - * Returns the ZSTD_sequenceLength for the given sequences. It handles the decoding of long sequences + * Returns the ZSTD_SequenceLength for the given sequences. It handles the decoding of long sequences * indicated by longLengthPos and longLengthType, and adds MINMATCH back to matchLength. */ -MEM_STATIC ZSTD_sequenceLength ZSTD_getSequenceLength(SeqStore_t const* seqStore, SeqDef const* seq) +MEM_STATIC ZSTD_SequenceLength ZSTD_getSequenceLength(SeqStore_t const* seqStore, SeqDef const* seq) { - ZSTD_sequenceLength seqLen; + ZSTD_SequenceLength seqLen; seqLen.litLength = seq->litLength; seqLen.matchLength = seq->mlBase + MINMATCH; if (seqStore->longLengthPos == (U32)(seq - seqStore->sequencesStart)) { diff --git a/lib/compress/zstd_compress_superblock.c b/lib/compress/zstd_compress_superblock.c index d74f44548..f2806c9ab 100644 --- a/lib/compress/zstd_compress_superblock.c +++ b/lib/compress/zstd_compress_superblock.c @@ -134,7 +134,7 @@ ZSTD_seqDecompressedSize(SeqStore_t const* seqStore, size_t litLengthSum = 0; size_t n; for (n=0; n