From 13c49e31c55e26d3d353c39f45822266202341d8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 9 Aug 2021 15:15:43 +0200 Subject: -fix loop --- src/setu/ibf.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') 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; - } - } - } - } -- cgit v1.2.3