aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-01-08 11:05:32 +0200
committerArnold D. Robbins <arnold@skeeve.com>2021-01-08 11:05:32 +0200
commitd562eb482f3180dcd59a332edc91027ea3844d90 (patch)
treed90bb37b1c75a6429d961031b6a3ae08559408c0 /mpfr.c
parentb4dc5fb3dc57f7fc7eaba39c5814b8bae9403b77 (diff)
downloadegawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.gz
egawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.bz2
egawk-d562eb482f3180dcd59a332edc91027ea3844d90.zip
Improve use of types throughout.
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpfr.c b/mpfr.c
index f1a460a6..cf53bbdd 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -639,7 +639,7 @@ get_rnd_mode(const char rmode)
default:
break;
}
- return -1;
+ return (mpfr_rnd_t) -1;
}
/*
@@ -651,7 +651,7 @@ void
set_ROUNDMODE()
{
if (do_mpfr) {
- mpfr_rnd_t rndm = -1;
+ mpfr_rnd_t rndm = (mpfr_rnd_t) -1;
NODE *n;
n = force_string(ROUNDMODE_node->var_value);
if (n->stlen == 1)
@@ -748,7 +748,7 @@ do_mpfr_atan2(int nargs)
static inline NODE *
do_mpfr_func(const char *name,
- int (*mpfr_func)(), /* putting argument types just gets the compiler confused */
+ int (*mpfr_func)(mpfr_ptr, mpfr_srcptr, mpfr_rnd_t),
int nargs)
{
NODE *t1, *res;