From 3bbd2882d31bc5281a1bbd4f4de6860ec1b62874 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(-) 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