Commit 30de5e95 by Richard Stallman

(__udiv_w_sdiv): Cast 1 before shifting by 31.

From-SVN: r2809
parent 4ed15f9d
...@@ -296,7 +296,7 @@ __udiv_w_sdiv (rp, a1, a0, d) ...@@ -296,7 +296,7 @@ __udiv_w_sdiv (rp, a1, a0, d)
/* Divide (c1*2^32 + c0) by d */ /* Divide (c1*2^32 + c0) by d */
sdiv_qrnnd (q, r, c1, c0, d); sdiv_qrnnd (q, r, c1, c0, d);
/* Add 2^31 to quotient */ /* Add 2^31 to quotient */
q += 1 << 31; q += (USItype) 1 << 31;
} }
} }
else else
......
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