From: Volker Lendecke Date: Wed, 10 Aug 2011 17:45:14 +0000 (+0200) Subject: tally: Adapt bucket_of to Samba coding conventions X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=4f438157901f6784cd47135e50deb204fc0c230b;hp=237fc67d26def3f4458594b4aff7cb617f4522f7;ds=sidebyside tally: Adapt bucket_of to Samba coding conventions (Imported from SAMBA commit 68d0843437b05dc8a36091e4a307bfd912cbc09f) --- 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; }