projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c97d5
)
replaced while(1)
author
Yann Collet
<cyan@fb.com>
Fri, 31 May 2019 19:01:33 +0000
(12:01 -0700)
committer
Yann Collet
<cyan@fb.com>
Fri, 31 May 2019 19:01:33 +0000
(12:01 -0700)
by for (;;)
just to please Visual Studio C4127 .
tests/fullbench.c
patch
|
blob
|
history
diff --git
a/tests/fullbench.c
b/tests/fullbench.c
index
2488a54
..
dbdb02c
100644
(file)
--- 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) {