Remove MEM_STATIC_ASSERT and use DEBUG_STATIC_ASSERT instead

This commit is contained in:
Nick Terrell committed 2020-09-24 15:51:04 -07:00
1 parent 9009b59f09
commit b09ec5c2b9
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -457,7 +457,7 @@ static void ZWRAP_initDCtx(ZWRAP_DCtx* zwd)
static ZWRAP_DCtx* ZWRAP_createDCtx(z_streamp strm)
{
ZWRAP_DCtx* zwd;
MEM_STATIC_ASSERT(sizeof(zwd->headerBuf) >= ZSTD_HEADERSIZE); /* check static buffer size condition */
DEBUG_STATIC_ASSERT(sizeof(zwd->headerBuf) >= ZSTD_HEADERSIZE); /* check static buffer size condition */
if (strm->zalloc && strm->zfree) {
zwd = (ZWRAP_DCtx*)strm->zalloc(strm->opaque, 1, sizeof(ZWRAP_DCtx));