summaryrefslogtreecommitdiff
path: root/mpf/set_str.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>1996-08-07 07:00:39 +0200
committertege <tege@gmplib.org>1996-08-07 07:00:39 +0200
commit5b4b67d09a00e55cae31c2599b457da876518424 (patch)
tree00f46aab4c6e4ad9c6c6044da42bf86cb52642aa /mpf/set_str.c
parent2003eeb689cff41b84dab092544f515a5401411e (diff)
downloadgmp-5b4b67d09a00e55cae31c2599b457da876518424.tar.gz
In exp_in_base==0 case, add madj to msize for EXP field.
Diffstat (limited to 'mpf/set_str.c')
-rw-r--r--mpf/set_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/set_str.c b/mpf/set_str.c
index 41562e104..848b40440 100644
--- a/mpf/set_str.c
+++ b/mpf/set_str.c
@@ -202,7 +202,7 @@ mpf_set_str (x, str, base)
{
MPN_COPY (x->_mp_d, mp, msize);
x->_mp_size = negative ? -msize : msize;
- x->_mp_exp = msize;
+ x->_mp_exp = msize + madj;
TMP_FREE (marker);
return 0;
}