geändert: zstdmt_common.c

This commit is contained in:
Tino Reichardt
2016-10-18 11:45:15 +02:00
parent 5a3244dd01
commit 250a5e31e8

View File

@@ -31,10 +31,11 @@ unsigned ZSTDMT_isError(size_t code)
*/
const char *ZSTDMT_getErrorString(size_t code)
{
static const char *notErrorCode = "Unspecified error zstmt code";
if (ZSTD_isError(zstdmt_errcode))
return ZSTD_getErrorName(zstdmt_errcode);
static const char *notErrorCode = "Unspecified error zstmt code";
switch ((ZSTDMT_ErrorCode) (0 - code)) {
case ZSTDMT_PREFIX(no_error):
return "No error detected";