diff options
author | Kevin Ryde <user42@zip.com.au> | 2004-05-10 01:26:52 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2004-05-10 01:26:52 +0200 |
commit | 05643760e994d1aefd0429c8565e2f67a8a4e20d (patch) | |
tree | 8b1c22edf4101bca31c3d30d915c55ea2f3b8eb8 /demos | |
parent | 60aea38dc0896f75f01221d808eb9e06c6a03db6 (diff) | |
download | gmp-05643760e994d1aefd0429c8565e2f67a8a4e20d.tar.gz |
* demos/expr/exprfa.c (mpf_expr_a): Correction to mpX_init, use
mpf_init2 to follow requested precision.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/expr/exprfa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/expr/exprfa.c b/demos/expr/exprfa.c index 8e064bc88..c28873305 100644 --- a/demos/expr/exprfa.c +++ b/demos/expr/exprfa.c @@ -1,6 +1,6 @@ /* mpf expression evaluation -Copyright 2000, 2001, 2002 Free Software Foundation, Inc. +Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -17,8 +17,8 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MP Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, -MA 02111-1307, USA. -*/ +MA 02111-1307, USA. */ + /* Future: Bitwise "&", "|" and "&" could be done, if desired. Not sure those functions would be much value though. */ @@ -171,7 +171,7 @@ mpf_expr_a (__gmp_const struct mpexpr_operator_t *table, p.mpX_clear = (mpexpr_fun_one_t) mpf_clear; p.mpX_ulong_p = (mpexpr_fun_i_unary_t) e_mpf_ulong_p; p.mpX_get_ui = (mpexpr_fun_get_ui_t) mpf_get_ui; - p.mpX_init = (mpexpr_fun_unary_ui_t) mpf_init; + p.mpX_init = (mpexpr_fun_unary_ui_t) mpf_init2; p.mpX_number = (mpexpr_fun_number_t) e_mpf_number; p.mpX_set = (mpexpr_fun_unary_t) mpf_set; p.mpX_set_or_swap = (mpexpr_fun_unary_t) e_mpf_set_or_swap; |