]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
yet another minor visual conversion warning
authorYann Collet <cyan@fb.com>
Sat, 26 Oct 2019 07:27:32 +0000 (00:27 -0700)
committerYann Collet <cyan@fb.com>
Sat, 26 Oct 2019 07:27:32 +0000 (00:27 -0700)
this time for 32-bit systems

programs/util.c

index 29830d95636beffae04631dea37ac050d1bde22e..6db0c85e7ba1404df07ec37323c227e757c403a6 100644 (file)
@@ -275,7 +275,7 @@ UTIL_createFileNamesTable_fromFileName(const char* inputFileName)
     {   U64 const inputFileSize = UTIL_getFileSize(inputFileName);
         if(inputFileSize > MAX_FILE_OF_FILE_NAMES_SIZE)
             return NULL;
-        bufSize = inputFileSize + 1; /* (+1) to add '\0' at the end of last filename */
+        bufSize = (size_t)(inputFileSize + 1); /* (+1) to add '\0' at the end of last filename */
     }
 
     buf = (char*) malloc(bufSize);