From: senhuang42 Date: Tue, 29 Sep 2020 22:12:32 +0000 (-0400) Subject: ldm_getNextMatch fixed return values X-Git-Tag: v1.4.7~57^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724b94ed182ec55401f365f3912715fc3ba97352;p=thirdparty%2Fzstd.git ldm_getNextMatch fixed return values --- diff --git a/lib/compress/zstd_opt.c b/lib/compress/zstd_opt.c index 075826b73..25168d6fe 100644 --- a/lib/compress/zstd_opt.c +++ b/lib/compress/zstd_opt.c @@ -824,19 +824,19 @@ static void ldm_getNextMatch(rawSeqStore_t* ldmSeqStore, if (ldmSeqStore->pos >= ldmSeqStore->size) { *matchStartPosInBlock = UINT32_MAX; *matchEndPosInBlock = UINT32_MAX; - return 1; + return; } rawSeq seq = ldm_splitSequenceAndUpdateSeqStore(ldmSeqStore, remainingBytes); if (seq.offset == 0) { *matchStartPosInBlock = UINT32_MAX; *matchEndPosInBlock = UINT32_MAX; - return 1; + return; } *matchStartPosInBlock = currPosInBlock + seq.litLength; *matchEndPosInBlock = *matchStartPosInBlock + seq.matchLength; *matchOffset = seq.offset; - return 0; + return; } /* Adds an LDM if it's long enough */