From 4f438157901f6784cd47135e50deb204fc0c230b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:45:14 +0200 Subject: [PATCH 1/1] tally: Adapt bucket_of to Samba coding conventions (Imported from SAMBA commit 68d0843437b05dc8a36091e4a307bfd912cbc09f) --- ccan/tally/tally.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2