]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixing AppVeyor errors
authorAhmed Abdellah <ahmedabdellah@fb.com>
Thu, 24 Oct 2019 14:25:48 +0000 (15:25 +0100)
committerAhmed Abdellah <ahmedabdellah@fb.com>
Thu, 24 Oct 2019 14:25:48 +0000 (15:25 +0100)
programs/util.c
programs/zstdcli.c

index 7257c8a55812144fb76396c7b0fd77c9420f325d..21f1fe7db02afc1231efa7f2ff462a543752f040 100644 (file)
@@ -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;
index 99f344fcb05cda8f33965258762f98c2755b1bce..9470473d930bc10ec049a2983be07e40d36ae3a3 100644 (file)
@@ -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;