git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68d0843
)
Adapt bucket_min to Samba coding conventions
author
Volker Lendecke
<vl@samba.org>
Wed, 10 Aug 2011 17:45:24 +0000
(19:45 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 10 Aug 2011 17:56:10 +0000
(19:56 +0200)
lib/ccan/tally/tally.c
patch
|
blob
|
history
diff --git
a/lib/ccan/tally/tally.c
b/lib/ccan/tally/tally.c
index 7eec70d39323429e259e08f04d195fd97472f57b..1c471c1503ec51ff57177db1d71d0ffaa5019455 100644
(file)
--- a/
lib/ccan/tally/tally.c
+++ b/
lib/ccan/tally/tally.c
@@
-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)
{
/* Don't over-shift. */
- if (step_bits == SIZET_BITS)
+ if (step_bits == SIZET_BITS)
{
return min;
+ }
assert(step_bits < SIZET_BITS);
return min + ((ssize_t)b << step_bits);
}