tally: Adapt tally_approx_median to Samba coding conventions
[ccan] / ccan / tally / tally.c
index 936b5142561a9ec172fd86a96ddf88a529472842..20e99dcb870dac2d56c539e6873cc1618d84d22f 100644 (file)
@@ -386,8 +386,9 @@ ssize_t tally_approx_median(const struct tally *tally, size_t *err)
 
        for (i = 0; i < tally->buckets; i++) {
                total += tally->counts[i];
-               if (total * 2 >= count)
+               if (total * 2 >= count) {
                        break;
+               }
        }
        return bucket_range(tally, i, err);
 }