diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-06-25 13:29:38 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-06-25 13:29:38 +0000 |
commit | c11baac01cd3d4ba2e8d26c1f26055a64121c422 (patch) | |
tree | a21eb3a86e35fe2857abf539f453e4a430595d51 /cos.c | |
parent | 986abcf6c12926787f5ab668c86f801745043440 (diff) | |
download | mpfr-c11baac01cd3d4ba2e8d26c1f26055a64121c422.tar.gz |
fixed stupid bug (subtraction of unsigned longs)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4573 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cos.c')
-rw-r--r-- | cos.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -229,7 +229,7 @@ mpfr_cos (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) than 2^(-precy) for directed rounding, or 2^(-precy-1) for rounding to nearest. */ { - if (m - k >= precy + (rnd_mode == GMP_RNDN)) + if (m > k && (m - k >= precy + (rnd_mode == GMP_RNDN))) { /* if round to nearest or away, result is s, otherwise it is round(nexttoward (s, 0)) */ |