geändert: lz4mt_common.c

geändert:       lz5mt_common.c
This commit is contained in:
Tino Reichardt
2016-10-18 11:53:07 +02:00
parent 2abff8fd2d
commit 76387f73bc
2 changed files with 4 additions and 2 deletions

View File

@@ -32,10 +32,11 @@ unsigned LZ4MT_isError(size_t code)
*/
const char *LZ4MT_getErrorString(size_t code)
{
static const char *notErrorCode = "Unspecified error lz4mt code";
if (LZ4F_isError(lz4mt_errcode))
return LZ4F_getErrorName(lz4mt_errcode);
static const char *notErrorCode = "Unspecified error lz4mt code";
switch ((LZ4MT_ErrorCode)(0-code)) {
case PREFIX(no_error):
return "No error detected";

View File

@@ -32,10 +32,11 @@ unsigned LZ5MT_isError(size_t code)
*/
const char *LZ5MT_getErrorString(size_t code)
{
static const char *notErrorCode = "Unspecified error lz4mt code";
if (LZ5F_isError(lz5mt_errcode))
return LZ5F_getErrorName(lz5mt_errcode);
static const char *notErrorCode = "Unspecified error lz4mt code";
switch ((LZ5MT_ErrorCode)(0-code)) {
case PREFIX(no_error):
return "No error detected";