Browse Source

tally: Adapt fls64 to Samba coding conventions

(Imported from SAMBA commit 73414d0ee7bbe371b0f9b275b44ce5854a10b9f2)
Volker Lendecke 14 years ago
parent
commit
bf7539ac82
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ccan/tally/tally.c

+ 2 - 1
ccan/tally/tally.c

@@ -183,8 +183,9 @@ static unsigned fls64(uint64_t val)
 #endif
 #endif
 	uint64_t r = 64;
 	uint64_t r = 64;
 
 
-	if (!val)
+	if (!val) {
 		return 0;
 		return 0;
+	}
 	if (!(val & 0xffffffff00000000ull)) {
 	if (!(val & 0xffffffff00000000ull)) {
 		val <<= 32;
 		val <<= 32;
 		r -= 32;
 		r -= 32;