Commit 63a3c0f3 authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Adapt divls64 to Samba coding conventions

(Imported from SAMBA commit f589af19821e12aba6145492fd4ded58f07131b8)
parent 9dba5bf0
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment