summaryrefslogtreecommitdiff
path: root/lib/ccan
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:51:26 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:11 +0200
commitf589af19821e12aba6145492fd4ded58f07131b8 (patch)
treefb9cc407eff2b75c895460ad0a196c84f27f6d2b /lib/ccan
parentb32f086d643eb39c3806e30b19a028e6a59f0054 (diff)
downloadsamba-f589af19821e12aba6145492fd4ded58f07131b8.tar.gz
samba-f589af19821e12aba6145492fd4ded58f07131b8.tar.bz2
samba-f589af19821e12aba6145492fd4ded58f07131b8.zip
Adapt divls64 to Samba coding conventions
Diffstat (limited to 'lib/ccan')
-rw-r--r--lib/ccan/tally/tally.c3
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);