diff options
author | tege <tege@gmplib.org> | 2003-06-09 15:52:50 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2003-06-09 15:52:50 +0200 |
commit | 4c5d495964d77ad99eee02bdf191d351dadf7fb2 (patch) | |
tree | 1e576c27dfa00fc14bba3fa73822882ba275bf60 /mpf | |
parent | a948ca489e40c095d04ee972fa0217123242b775 (diff) | |
download | gmp-4c5d495964d77ad99eee02bdf191d351dadf7fb2.tar.gz |
Simplify `off' computation.
Diffstat (limited to 'mpf')
-rw-r--r-- | mpf/get_str.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mpf/get_str.c b/mpf/get_str.c index 1d4216f2b..ebecf5ec4 100644 --- a/mpf/get_str.c +++ b/mpf/get_str.c @@ -201,8 +201,7 @@ mpf_get_str (char *dbuf, mp_exp_t *exp, int base, size_t n_digits, mpf_srcptr u) mpn_mul (tp, pp, pn, up, un); /* FIXME: mpn_mul_highpart */ tn = un + pn; tn -= tp[tn - 1] == 0; - fracn = un - ue; - off = fracn - ign; + off = un - ue - ign; if (off < 0) { MPN_COPY_DECR (tp - off, tp, tn); |