summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-09 15:15:43 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-09 15:15:43 +0200
commit13c49e31c55e26d3d353c39f45822266202341d8 (patch)
tree722d89cfdd93c3f8455364e46021c6821c86e93a /src
parente2f5f39f0d1cecf6a8f528a758cdf9615c9ba6ce (diff)
-fix loop
Diffstat (limited to 'src')
-rw-r--r--src/setu/ibf.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/setu/ibf.c b/src/setu/ibf.c
index 8f29adb62..dbd23c320 100644
--- a/src/setu/ibf.c
+++ b/src/setu/ibf.c
@@ -462,11 +462,11 @@ unpack_counter (const struct InvertibleBloomFilter *ibf,
/**
* Pack data left in story before finishing
*/
- while (bit_to_read_left >= 0)
+ while (true)
{
/**
- * Stop decoding when end is reached
- */
+ * Stop decoding when end is reached
+ */
if (ibf_counter_ctr > (count - 1))
return;
@@ -504,13 +504,9 @@ unpack_counter (const struct InvertibleBloomFilter *ibf,
store = store | byte_read;
}
break;
-
}
-
}
-
}
-
}