From da75a4096e76577b02536ab44f3d83954b6b0f15 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 6 Apr 2022 06:38:21 -0700 Subject: updated one error code --- lib/lz4frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lz4frame.c b/lib/lz4frame.c index f4ea02a..8760475 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -1687,7 +1687,7 @@ size_t LZ4F_decompress(LZ4F_dctx* dctx, (const char*)selectedIn, (char*)dstPtr, (int)dctx->tmpInTarget, (int)dctx->maxBlockSize, dict, (int)dictSize); - if (decodedSize < 0) return err0r(LZ4F_ERROR_GENERIC); /* decompression failed */ + if (decodedSize < 0) return err0r(LZ4F_ERROR_decompressionFailed); if (dctx->frameInfo.contentChecksumFlag) XXH32_update(&(dctx->xxh), dstPtr, (size_t)decodedSize); if (dctx->frameInfo.contentSize) -- cgit v0.12