zfhPtr->frameType = ZSTD_skippableFrame;
return 0;
}
- RETURN_ERROR_IF(1, prefix_unknown);
+ RETURN_ERROR(prefix_unknown);
}
/* ensure there is enough `srcSize` to fully read/decode frame header */
DEBUGLOG(5, "ZSTD_copyRawBlock");
if (dst == NULL) {
if (srcSize == 0) return 0;
- RETURN_ERROR_IF(1, dstBuffer_null);
+ RETURN_ERROR(dstBuffer_null);
}
RETURN_ERROR_IF(srcSize > dstCapacity, dstSize_tooSmall);
memcpy(dst, src, srcSize);
{
if (dst == NULL) {
if (regenSize == 0) return 0;
- RETURN_ERROR_IF(1, dstBuffer_null);
+ RETURN_ERROR(dstBuffer_null);
}
RETURN_ERROR_IF(regenSize > dstCapacity, dstSize_tooSmall);
memset(dst, b, regenSize);
break;
case bt_reserved :
default:
- RETURN_ERROR_IF(1, corruption_detected);
+ RETURN_ERROR(corruption_detected);
}
if (ZSTD_isError(decodedSize)) return decodedSize;
break;
case bt_reserved : /* should never happen */
default:
- RETURN_ERROR_IF(1, corruption_detected);
+ RETURN_ERROR(corruption_detected);
}
if (ZSTD_isError(rSize)) return rSize;
DEBUGLOG(5, "ZSTD_decompressContinue: decoded size from block : %u", (unsigned)rSize);
default:
assert(0); /* impossible */
- RETURN_ERROR_IF(1, GENERIC); /* some compiler require default to do something */
+ RETURN_ERROR(GENERIC); /* some compiler require default to do something */
}
}
return 0;
default:;
}
- RETURN_ERROR_IF(1, parameter_unsupported);
+ RETURN_ERROR(parameter_unsupported);
}
size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset)
default:
assert(0); /* impossible */
- RETURN_ERROR_IF(1, GENERIC); /* some compiler require default to do something */
+ RETURN_ERROR(GENERIC); /* some compiler require default to do something */
} }
/* result */