tally: Adapt fls64 to Samba coding conventions
authorVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2011 17:46:52 +0000 (19:46 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:09:11 +0000 (10:39 +0930)
(Imported from SAMBA commit 73414d0ee7bbe371b0f9b275b44ce5854a10b9f2)

ccan/tally/tally.c

index 52bd4e11b903b661360390bd1c96dc34a875ed2b..4e8876cc4aa5e2874fa83c1b341783e9811d0927 100644 (file)
@@ -183,8 +183,9 @@ static unsigned fls64(uint64_t val)
 #endif
        uint64_t r = 64;
 
-       if (!val)
+       if (!val) {
                return 0;
+       }
        if (!(val & 0xffffffff00000000ull)) {
                val <<= 32;
                r -= 32;