summaryrefslogtreecommitdiffstats
path: root/programs/datagen.c
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 /programs/datagen.c
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 'programs/datagen.c')
-rw-r--r--programs/datagen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/programs/datagen.c b/programs/datagen.c
index a61afc0..7285d69 100644
--- a/programs/datagen.c
+++ b/programs/datagen.c
@@ -119,7 +119,10 @@ void RDG_genBlock(void* buffer, size_t buffSize, size_t prefixSize, double match
}
/* init */
- if (pos==0) buffPtr[0] = RDG_genChar(seed, lt), pos=1;
+ if (pos==0) {
+ buffPtr[0] = RDG_genChar(seed, lt);
+ pos=1;
+ }
/* Generate compressible data */
while (pos < buffSize)