summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-11-02 21:44:57 -0500
committerRich Felker <dalias@aerifal.cx>2015-11-02 21:44:57 -0500
commit2f1d1f1ec538c4fa9b62358cf0d3dba5e646a572 (patch)
tree3c4db336905467f72c5d1f637dc81513775c578e /include
parent4fcb48275adbe1959852d298425e2da610708975 (diff)
downloadmusl-2f1d1f1ec538c4fa9b62358cf0d3dba5e646a572.tar.gz
musl-2f1d1f1ec538c4fa9b62358cf0d3dba5e646a572.tar.bz2
musl-2f1d1f1ec538c4fa9b62358cf0d3dba5e646a572.tar.xz
musl-2f1d1f1ec538c4fa9b62358cf0d3dba5e646a572.zip
fix mismatched parens in CMPLX def for annex-g-conforming compilers
this conditional path was never tested because there are no compilers that conform to annex g (none with _Imaginary_I).
Diffstat (limited to 'include')
-rw-r--r--include/complex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/complex.h b/include/complex.h
index 4d21728e..008b3c7e 100644
--- a/include/complex.h
+++ b/include/complex.h
@@ -116,7 +116,7 @@ long double creall(long double complex);
#if __STDC_VERSION__ >= 201112L
#if defined(_Imaginary_I)
-#define __CMPLX(x, y, t) ((t)(x) + _Imaginary_I*(t)(y)))
+#define __CMPLX(x, y, t) ((t)(x) + _Imaginary_I*(t)(y))
#elif defined(__clang__)
#define __CMPLX(x, y, t) (+(_Complex t){ (t)(x), (t)(y) })
#else