From 408de1523353755f87b8ca961d1092ff9628fc7c Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 22 Mar 2019 07:35:57 -0700 Subject: 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. --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.c') 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: -- cgit v1.2.3