mirror of
https://github.com/facebook/zstd.git
synced 2025-12-06 00:02:05 -05:00
fix constant redeclaration in paramgrill
This commit is contained in:
parent
32b7cf1bcf
commit
484f40697b
@ -70,9 +70,6 @@ static const int g_maxNbVariations = 64;
|
|||||||
#define FADT_MIN 0
|
#define FADT_MIN 0
|
||||||
#define FADT_MAX ((U32)-1)
|
#define FADT_MAX ((U32)-1)
|
||||||
|
|
||||||
#define ZSTD_TARGETLENGTH_MIN 0
|
|
||||||
#define ZSTD_TARGETLENGTH_MAX 999
|
|
||||||
|
|
||||||
#define WLOG_RANGE (ZSTD_WINDOWLOG_MAX - ZSTD_WINDOWLOG_MIN + 1)
|
#define WLOG_RANGE (ZSTD_WINDOWLOG_MAX - ZSTD_WINDOWLOG_MIN + 1)
|
||||||
#define CLOG_RANGE (ZSTD_CHAINLOG_MAX - ZSTD_CHAINLOG_MIN + 1)
|
#define CLOG_RANGE (ZSTD_CHAINLOG_MAX - ZSTD_CHAINLOG_MIN + 1)
|
||||||
#define HLOG_RANGE (ZSTD_HASHLOG_MAX - ZSTD_HASHLOG_MIN + 1)
|
#define HLOG_RANGE (ZSTD_HASHLOG_MAX - ZSTD_HASHLOG_MIN + 1)
|
||||||
@ -1192,6 +1189,7 @@ static int createContexts(contexts_t* ctx, const char* dictFileName) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
ctx->dictSize = UTIL_getFileSize(dictFileName);
|
ctx->dictSize = UTIL_getFileSize(dictFileName);
|
||||||
|
assert(ctx->dictSize != UTIL_FILESIZE_UNKNOWN);
|
||||||
ctx->dictBuffer = malloc(ctx->dictSize);
|
ctx->dictBuffer = malloc(ctx->dictSize);
|
||||||
|
|
||||||
f = fopen(dictFileName, "rb");
|
f = fopen(dictFileName, "rb");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user