X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftally%2Ftally.c;h=1c471c1503ec51ff57177db1d71d0ffaa5019455;hp=7eec70d39323429e259e08f04d195fd97472f57b;hb=7851faa626656f37ffd2b4b5e70139403c8d3235;hpb=4f438157901f6784cd47135e50deb204fc0c230b;ds=inline diff --git a/ccan/tally/tally.c b/ccan/tally/tally.c index 7eec70d3..1c471c15 100644 --- a/ccan/tally/tally.c +++ b/ccan/tally/tally.c @@ -63,8 +63,9 @@ static unsigned bucket_of(ssize_t min, unsigned step_bits, ssize_t val) static ssize_t bucket_min(ssize_t min, unsigned step_bits, unsigned b) { /* Don't over-shift. */ - if (step_bits == SIZET_BITS) + if (step_bits == SIZET_BITS) { return min; + } assert(step_bits < SIZET_BITS); return min + ((ssize_t)b << step_bits); }