diff options
author | Volker Lendecke <vl@samba.org> | 2011-08-10 19:51:26 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-08-10 19:56:11 +0200 |
commit | f589af19821e12aba6145492fd4ded58f07131b8 (patch) | |
tree | fb9cc407eff2b75c895460ad0a196c84f27f6d2b /lib | |
parent | b32f086d643eb39c3806e30b19a028e6a59f0054 (diff) | |
download | samba-f589af19821e12aba6145492fd4ded58f07131b8.tar.gz samba-f589af19821e12aba6145492fd4ded58f07131b8.tar.bz2 samba-f589af19821e12aba6145492fd4ded58f07131b8.zip |
Adapt divls64 to Samba coding conventions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ccan/tally/tally.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c index 9775cb4e62..5602e75017 100644 --- a/lib/ccan/tally/tally.c +++ b/lib/ccan/tally/tally.c @@ -302,8 +302,9 @@ static int64_t divls64(int64_t u1, uint64_t u0, int64_t v) vneg = v >> 63; /* -1 if v < 0. */ v = (v ^ vneg) - vneg; /* Absolute value of v. */ - if ((uint64_t)u1 >= (uint64_t)v) + if ((uint64_t)u1 >= (uint64_t)v) { goto overflow; + } q = divlu64(u1, u0, v); |