-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.patch text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/lib/legacy/zstd_v04.c b/lib/legacy/zstd_v04.c | ||
index 57be832b..cc4d3c2b 100644 | ||
--- a/lib/legacy/zstd_v04.c | ||
+++ b/lib/legacy/zstd_v04.c | ||
@@ -3545,10 +3545,15 @@ static size_t ZBUFF_decompressContinue(ZBUFF_DCtx* zbc, void* dst, size_t* maxDs | ||
unsigned ZBUFFv04_isError(size_t errorCode) { return ERR_isError(errorCode); } | ||
const char* ZBUFFv04_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); } | ||
|
||
-size_t ZBUFFv04_recommendedDInSize() { return BLOCKSIZE + 3; } | ||
-size_t ZBUFFv04_recommendedDOutSize() { return BLOCKSIZE; } | ||
- | ||
+size_t ZBUFFv04_recommendedDInSize(void) | ||
+{ | ||
+ return BLOCKSIZE + 3; | ||
+} | ||
|
||
+size_t ZBUFFv04_recommendedDOutSize(void) | ||
+{ | ||
+ return BLOCKSIZE; | ||
+} | ||
|
||
/*- ========================================================================= -*/ | ||
|