aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-12-20 20:14:27 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-12-20 20:14:27 +0200
commitb82e1ea2fff1333272d1c29b762dc1abd0215e7e (patch)
treedae4343fb59d01f32cd0f2d84a3c676f21fb51bd /builtin.c
parent86df8fd1c504793b43404ce9467cff7b1d1fe2a1 (diff)
parente1be14cd37e0c6c58284e18c859e334d1b5fa97f (diff)
downloadegawk-b82e1ea2fff1333272d1c29b762dc1abd0215e7e.tar.gz
egawk-b82e1ea2fff1333272d1c29b762dc1abd0215e7e.tar.bz2
egawk-b82e1ea2fff1333272d1c29b762dc1abd0215e7e.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index caf3d3b9..55c8878e 100644
--- a/builtin.c
+++ b/builtin.c
@@ -4293,7 +4293,7 @@ format_nan_inf(NODE *n, char format)
return NULL;
else if (is_mpg_float(n)) {
if (mpfr_nan_p(n->mpg_numbr)) {
- strcpy(buf, mpfr_signbit(n->mpg_numbr) ? "-nan" : "+nan");
+ strcpy(buf, mpfr_signbit(n->mpg_numbr) != 0 ? "-nan" : "+nan");
goto fmt;
} else if (mpfr_inf_p(n->mpg_numbr)) {