summaryrefslogtreecommitdiff
path: root/mpf/iset.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-03-03 20:44:56 +0100
committerKevin Ryde <user42@zip.com.au>2004-03-03 20:44:56 +0100
commit6780696abcdd7b34a92d396817b45d76c2f28130 (patch)
tree86f414cc99c626e21a2e11cfcec3521bab4df3f8 /mpf/iset.c
parentfbfa79d5418f318403111805404a7ad8863a5742 (diff)
downloadgmp-6780696abcdd7b34a92d396817b45d76c2f28130.tar.gz
* mpf/set.c, mpf/iset.c: MPN_COPY last, for possible tail call.
Diffstat (limited to 'mpf/iset.c')
-rw-r--r--mpf/iset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpf/iset.c b/mpf/iset.c
index 9a8b67f80..5ab0c25f9 100644
--- a/mpf/iset.c
+++ b/mpf/iset.c
@@ -1,6 +1,6 @@
/* mpf_init_set -- Initialize a float and assign it from another float.
-Copyright 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
+Copyright 1993, 1994, 1995, 2000, 2001, 2004 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -46,8 +46,8 @@ mpf_init_set (mpf_ptr r, mpf_srcptr s)
size = prec;
}
- MPN_COPY (rp, sp, size);
-
r->_mp_exp = s->_mp_exp;
r->_mp_size = ssize >= 0 ? size : -size;
+
+ MPN_COPY (rp, sp, size);
}