Browse Source

tally: Adapt bucket_of to Samba coding conventions

(Imported from SAMBA commit 68d0843437b05dc8a36091e4a307bfd912cbc09f)
Volker Lendecke 14 years ago
parent
commit
4f43815790
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ccan/tally/tally.c

+ 2 - 1
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)
 static unsigned bucket_of(ssize_t min, unsigned step_bits, ssize_t val)
 {
 {
 	/* Don't over-shift. */
 	/* Don't over-shift. */
-	if (step_bits == SIZET_BITS)
+	if (step_bits == SIZET_BITS) {
 		return 0;
 		return 0;
+	}
 	assert(step_bits < SIZET_BITS);
 	assert(step_bits < SIZET_BITS);
 	return (size_t)(val - min) >> step_bits;
 	return (size_t)(val - min) >> step_bits;
 }
 }