summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-03-22 07:35:57 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-03-22 07:35:57 -0700
commit408de1523353755f87b8ca961d1092ff9628fc7c (patch)
treeb53472272241031155b4766c49874324df416137 /lib.c
parent7d9d2c5b1b968f0d751149d7b891d3301d1b8d61 (diff)
downloadtxr-408de1523353755f87b8ca961d1092ff9628fc7c.tar.gz
txr-408de1523353755f87b8ca961d1092ff9628fc7c.tar.bz2
txr-408de1523353755f87b8ca961d1092ff9628fc7c.zip
float: fix syntax error involving fplassify.
* lib.c (bad_float): Add missing parentheses around controlling expression of switch statement. This worked on glibc because it's a macro which expands to parentheses.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 0524a5d9..079b840c 100644
--- a/lib.c
+++ b/lib.c
@@ -3288,7 +3288,7 @@ cnum c_fixnum(val num, val self)
#if HAVE_FPCLASSIFY
INLINE int bad_float(double d)
{
- switch fpclassify(d) {
+ switch (fpclassify(d)) {
case FP_ZERO:
case FP_NORMAL:
case FP_SUBNORMAL: