Commit 7851faa6 authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Adapt bucket_min to Samba coding conventions

(Imported from SAMBA commit a2d1d0b51485f2d383d1d69fa3bd6b79b9e8d5aa)
parent 4f438157
...@@ -63,8 +63,9 @@ static unsigned bucket_of(ssize_t min, unsigned step_bits, ssize_t val) ...@@ -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) static ssize_t bucket_min(ssize_t min, unsigned step_bits, unsigned b)
{ {
/* Don't over-shift. */ /* Don't over-shift. */
if (step_bits == SIZET_BITS) if (step_bits == SIZET_BITS) {
return min; return min;
}
assert(step_bits < SIZET_BITS); assert(step_bits < SIZET_BITS);
return min + ((ssize_t)b << step_bits); return min + ((ssize_t)b << step_bits);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment