Comparison is always true, because code above returns early when
unsigned blockSize is 0. This invariant is asserted just before
if-else chain.
This is a follow up to #176 - to present an alternative fix. I also experimented with replacing these if-else's with a switch statement, but replacing this single comparison with an assert is less invasive change, and more readable.
Comparison is always true, because code above returns early when unsigned blockSize is 0. This invariant is asserted just before if-else chain.
This is a follow up to #176 - to present an alternative fix. I also experimented with replacing these if-else's with a switch statement, but replacing this single comparison with an assert is less invasive change, and more readable.