]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed another minor conversion warning on Visual
authorYann Collet <cyan@fb.com>
Sat, 26 Oct 2019 07:01:11 +0000 (00:01 -0700)
committerYann Collet <cyan@fb.com>
Sat, 26 Oct 2019 07:01:11 +0000 (00:01 -0700)
and made CONTROL() use exit() instead of abort().

programs/util.c

index 59f7b098441190f35bf029e08bab0960877b05bc..29830d95636beffae04631dea37ac050d1bde22e 100644 (file)
@@ -36,7 +36,7 @@ extern "C" {
     if (!(c)) {               \
         UTIL_DISPLAYLEVEL(1, "Error : %s, %i : %s",  \
                           __FILE__, __LINE__, #c);   \
-        abort();              \
+        exit(1);              \
 }   }
 
 
@@ -235,7 +235,7 @@ readLinesFromFile(void* dst, size_t dstCapacity,
             const char* inputFileName)
 {
     int nbFiles = 0;
-    unsigned pos = 0;
+    size_t pos = 0;
     char* const buf = (char*)dst;
     FILE* const inputFile = fopen(inputFileName, "r");