From 3e5c81ea3643fcba66d91779284bf1323e46714b Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 26 Oct 2019 00:01:11 -0700 Subject: [PATCH] fixed another minor conversion warning on Visual and made CONTROL() use exit() instead of abort(). --- programs/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/util.c b/programs/util.c index 59f7b098..29830d95 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");