From: Yann Collet Date: Sat, 26 Oct 2019 07:01:11 +0000 (-0700) Subject: fixed another minor conversion warning on Visual X-Git-Tag: v1.4.5^2~141^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e5c81ea3643fcba66d91779284bf1323e46714b;p=thirdparty%2Fzstd.git fixed another minor conversion warning on Visual and made CONTROL() use exit() instead of abort(). --- diff --git a/programs/util.c b/programs/util.c index 59f7b0984..29830d956 100644 --- a/programs/util.c +++ b/programs/util.c @@ -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");