diff options
author | Yann Collet <cyan@fb.com> | 2019-05-31 19:01:33 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-05-31 19:01:33 (GMT) |
commit | 99f1721ff5e3ab74fbe1fc8c68337ba87c1a8be9 (patch) | |
tree | 7b5d4e03ce0f4d816906a5c94f01e59f396fa8e6 /tests/fullbench.c | |
parent | 89c97d5ea682ba7e2481d610a8b7a2b057a80391 (diff) | |
download | lz4-99f1721ff5e3ab74fbe1fc8c68337ba87c1a8be9.zip lz4-99f1721ff5e3ab74fbe1fc8c68337ba87c1a8be9.tar.gz lz4-99f1721ff5e3ab74fbe1fc8c68337ba87c1a8be9.tar.bz2 |
replaced while(1)
by for (;;)
just to please Visual Studio C4127 .
Diffstat (limited to 'tests/fullbench.c')
-rw-r--r-- | tests/fullbench.c | 5 |
1 files 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) { |