summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-04-06 13:38:21 (GMT)
committerYann Collet <cyan@fb.com>2022-04-06 13:38:21 (GMT)
commitda75a4096e76577b02536ab44f3d83954b6b0f15 (patch)
tree6a4a29379a6faefa832161720203ba4c722b9cf3 /lib
parent90d68e37093d815e7ea06b0ee3c168cccffc84b8 (diff)
downloadlz4-da75a4096e76577b02536ab44f3d83954b6b0f15.zip
lz4-da75a4096e76577b02536ab44f3d83954b6b0f15.tar.gz
lz4-da75a4096e76577b02536ab44f3d83954b6b0f15.tar.bz2
updated one error code
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4frame.c2
1 files changed, 1 insertions, 1 deletions
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)