From 68d0843437b05dc8a36091e4a307bfd912cbc09f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:45:14 +0200 Subject: Adapt bucket_of to Samba coding conventions --- lib/ccan/tally/tally.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c index d67112c2cf..7eec70d393 100644 --- a/lib/ccan/tally/tally.c +++ b/lib/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; } -- cgit