summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-09-10 21:32:38 (GMT)
committerYann Collet <cyan@fb.com>2017-09-10 21:32:38 (GMT)
commita30cba08f489c07e0d6085248287cd5dcc901b30 (patch)
tree35b768df854d5764d6232de84ad2fe5266f137ca /lib
parenta2b4f732f4ab941dbd3108fb3c36c3afc54c47ee (diff)
downloadlz4-a30cba08f489c07e0d6085248287cd5dcc901b30.zip
lz4-a30cba08f489c07e0d6085248287cd5dcc901b30.tar.gz
lz4-a30cba08f489c07e0d6085248287cd5dcc901b30.tar.bz2
fixed a bunch of -Wcomma warnings
reported by @rvandermeulen (#398)
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 0960c97..707b94c 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -616,7 +616,11 @@ _next_match:
*token += ML_MASK;
matchCode -= ML_MASK;
LZ4_write32(op, 0xFFFFFFFF);
- while (matchCode >= 4*255) op+=4, LZ4_write32(op, 0xFFFFFFFF), matchCode -= 4*255;
+ while (matchCode >= 4*255) {
+ op+=4;
+ LZ4_write32(op, 0xFFFFFFFF);
+ matchCode -= 4*255;
+ }
op += matchCode / 255;
*op++ = (BYTE)(matchCode % 255);
} else