From 99f1721ff5e3ab74fbe1fc8c68337ba87c1a8be9 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 31 May 2019 12:01:33 -0700 Subject: [PATCH] replaced while(1) by for (;;) just to please Visual Studio C4127 . --- tests/fullbench.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/fullbench.c b/tests/fullbench.c index 2488a54..dbdb02c 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -358,7 +358,7 @@ static int local_LZ4F_decompress_followHint(const char* src, char* dst, int srcS size_t outPos = 0; size_t outRemaining = maxOutSize - outPos; - do { + for (;;) { size_t const sizeHint = LZ4F_decompress(g_dCtx, dst+outPos, &outRemaining, src+inPos, &inSize, NULL); assert(!LZ4F_isError(sizeHint)); @@ -369,8 +369,7 @@ static int local_LZ4F_decompress_followHint(const char* src, char* dst, int srcS outRemaining = maxOutSize - outPos; if (!sizeHint) break; - - } while(1); + } /* frame completed */ if (inPos != totalInSize) { -- 2.7.4