diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-09 15:15:43 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-09 15:15:43 +0200 |
commit | 13c49e31c55e26d3d353c39f45822266202341d8 (patch) | |
tree | 722d89cfdd93c3f8455364e46021c6821c86e93a /src | |
parent | e2f5f39f0d1cecf6a8f528a758cdf9615c9ba6ce (diff) | |
download | gnunet-13c49e31c55e26d3d353c39f45822266202341d8.tar.gz gnunet-13c49e31c55e26d3d353c39f45822266202341d8.zip |
-fix loop
Diffstat (limited to 'src')
-rw-r--r-- | src/setu/ibf.c | 10 |
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, | |||
462 | /** | 462 | /** |
463 | * Pack data left in story before finishing | 463 | * Pack data left in story before finishing |
464 | */ | 464 | */ |
465 | while (bit_to_read_left >= 0) | 465 | while (true) |
466 | { | 466 | { |
467 | /** | 467 | /** |
468 | * Stop decoding when end is reached | 468 | * Stop decoding when end is reached |
469 | */ | 469 | */ |
470 | if (ibf_counter_ctr > (count - 1)) | 470 | if (ibf_counter_ctr > (count - 1)) |
471 | return; | 471 | return; |
472 | 472 | ||
@@ -504,13 +504,9 @@ unpack_counter (const struct InvertibleBloomFilter *ibf, | |||
504 | store = store | byte_read; | 504 | store = store | byte_read; |
505 | } | 505 | } |
506 | break; | 506 | break; |
507 | |||
508 | } | 507 | } |
509 | |||
510 | } | 508 | } |
511 | |||
512 | } | 509 | } |
513 | |||
514 | } | 510 | } |
515 | 511 | ||
516 | 512 | ||