projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fcb482
)
fix mismatched parens in CMPLX def for annex-g-conforming compilers
author
Rich Felker
<dalias@aerifal.cx>
Tue, 3 Nov 2015 02:44:57 +0000
(21:44 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 3 Nov 2015 02:44:57 +0000
(21:44 -0500)
this conditional path was never tested because there are no compilers
that conform to annex g (none with _Imaginary_I).
include/complex.h
patch
|
blob
|
history
diff --git
a/include/complex.h
b/include/complex.h
index 4d21728ea919de97592226ae7b3206016eef2974..008b3c7e3b7d6190cb864892aa7b2bad3f1aa2cf 100644
(file)
--- 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