X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftally%2Ftally.c;h=7eec70d39323429e259e08f04d195fd97472f57b;hp=d67112c2cf6da49017904be9ec91b49f1f11ced5;hb=4f438157901f6784cd47135e50deb204fc0c230b;hpb=237fc67d26def3f4458594b4aff7cb617f4522f7 diff --git a/ccan/tally/tally.c b/ccan/tally/tally.c index d67112c2..7eec70d3 100644 --- a/ccan/tally/tally.c +++ b/ccan/tally/tally.c @@ -52,8 +52,9 @@ struct tally *tally_new(unsigned buckets) static unsigned bucket_of(ssize_t min, unsigned step_bits, ssize_t val) { /* Don't over-shift. */ - if (step_bits == SIZET_BITS) + if (step_bits == SIZET_BITS) { return 0; + } assert(step_bits < SIZET_BITS); return (size_t)(val - min) >> step_bits; }