X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftally%2Ftally.c;h=e166dd03c532252df2b0e31ed7d41198f390f88b;hp=5602e75017055ae5ce20f71deaf4c80f2db55784;hb=6697a3dde2b3e1aa180622bd5f909bba3a8fd948;hpb=63a3c0f3a8cf34e64f8ba9ba426537133fa71b2b diff --git a/ccan/tally/tally.c b/ccan/tally/tally.c index 5602e750..e166dd03 100644 --- a/ccan/tally/tally.c +++ b/ccan/tally/tally.c @@ -322,8 +322,9 @@ static int64_t divls64(int64_t u1, uint64_t u0, int64_t v) ssize_t tally_mean(const struct tally *tally) { size_t count = tally_num(tally); - if (!count) + if (!count) { return 0; + } if (sizeof(tally->total[0]) == sizeof(uint32_t)) { /* Use standard 64-bit arithmetic. */