From: Ahmed Abdellah Date: Thu, 24 Oct 2019 14:25:48 +0000 (+0100) Subject: fixing AppVeyor errors X-Git-Tag: v1.4.5^2~141^2~35^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3096596aabcd6de0163f7d8f99a26b10f272c1;p=thirdparty%2Fzstd.git fixing AppVeyor errors --- diff --git a/programs/util.c b/programs/util.c index 7257c8a55..21f1fe7db 100644 --- a/programs/util.c +++ b/programs/util.c @@ -247,7 +247,7 @@ UTIL_createFileNamesTable_fromFileName(const char* inputFileName) { if(inputFileSize > MAX_FILE_OF_FILE_NAMES_SIZE) return NULL; - buf = (char*) malloc(inputFileSize * sizeof(char)); + buf = (char*) malloc((size_t) inputFileSize * sizeof(char)); if(!buf) { UTIL_DISPLAYLEVEL(1, "[ERROR][UTIL_readFileNamesTableFromFile] Can't create buffer.\n"); return NULL; diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 99f344fcb..9470473d9 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -836,7 +836,7 @@ int main(int argCount, const char* argv[]) filenameTableSize = concatenatedTables->tableSize; tableBuf = concatenatedTables->buf; - filenameIdx += extendedTable->tableSize; + filenameIdx += (unsigned) extendedTable->tableSize; isTableBufferBased = 1; continue;