summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpn/generic/udiv_w_sdiv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpn/generic/udiv_w_sdiv.c b/mpn/generic/udiv_w_sdiv.c
index c01f95847..ceefd1b5f 100644
--- a/mpn/generic/udiv_w_sdiv.c
+++ b/mpn/generic/udiv_w_sdiv.c
@@ -9,7 +9,7 @@
GNU MP RELEASE.
-Copyright 1992, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1992, 1994, 1996, 2000, 2011 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -116,12 +116,12 @@ mpn_udiv_w_sdiv (rp, a1, a0, d)
{ /* Hence a1 = d - 1 = 2*b1 - 1 */
if (a0 >= -d)
{
- q = -1;
+ q = -CNST_LIMB(1);
r = a0 + d;
}
else
{
- q = -2;
+ q = -CNST_LIMB(2);
r = a0 + 2*d;
}
}