summaryrefslogtreecommitdiff
path: root/get_str.c
diff options
context:
space:
mode:
authorryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-08 23:04:40 +0000
committerryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-08 23:04:40 +0000
commit96090abe9e367fd535542425ed869284197bd346 (patch)
tree8a08a25740c6a6a91a384eb6698831d5af8838f8 /get_str.c
parent8b67d8ecf071a76591bd7b208a3a19a46a5900e5 (diff)
downloadmpfr-96090abe9e367fd535542425ed869284197bd346.tar.gz
(mpn_exp): Don't store -1 in a uint then return it as a long.
Fixes systems such as alpha where sizeof(uint)!=sizeof(long). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2150 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_str.c')
-rw-r--r--get_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get_str.c b/get_str.c
index 9fe3f9729..3d32ec741 100644
--- a/get_str.c
+++ b/get_str.c
@@ -295,7 +295,7 @@ mpn_exp (mp_limb_t *a, mp_exp_t *exp_r, int b, mp_exp_t e, size_t n)
*exp_r = f;
if (erreur == t)
- erreur = -1; /* exact */
+ return -1; /* exact */
else
{
/* if there are p loops after the first inexact result, with