diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-11-28 10:42:05 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-11-28 10:42:05 +0000 |
commit | edd0ae79696efbc7c64f6faa69d50a5851804321 (patch) | |
tree | 0a7af6892149dc9f58c0d4b31c30e3089940e20e /sub.c | |
parent | 0c99566bcd5597e44741572442154310f08bfe1b (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |