summaryrefslogtreecommitdiff
path: root/sub.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-11-28 10:42:05 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-11-28 10:42:05 +0000
commitedd0ae79696efbc7c64f6faa69d50a5851804321 (patch)
tree0a7af6892149dc9f58c0d4b31c30e3089940e20e /sub.c
parent0c99566bcd5597e44741572442154310f08bfe1b (diff)
downloadmpfr-edd0ae79696efbc7c64f6faa69d50a5851804321.tar.gz
forgot cast to int before comparison between imax (can be negative) and an
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@803 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sub.c')
-rw-r--r--sub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub.c b/sub.c
index feb583e0d..becfd59fd 100644
--- a/sub.c
+++ b/sub.c
@@ -304,7 +304,7 @@ mpfr_sub1(a, b, c, rnd_mode, diff_exp)
overlap += 2;
/* invert low limbs */
imax = (int)an - (int)bn + cancel1;
- if (imax > an) imax = an;
+ if (imax > (int)an) imax = an;
for (i=0;i<imax;i++) ap[i] = ~ap[i];
cc = (i) ? mpn_add_1(ap, ap, i, 1) : 1;
if (cancel1 < bn) mpn_sub_lshift_n(ap+i, bp, bn-cancel1, cancel2, an);