提交 2f1d1f1e 编写于 作者: R Rich Felker

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).
上级 4fcb4827
...@@ -116,7 +116,7 @@ long double creall(long double complex); ...@@ -116,7 +116,7 @@ long double creall(long double complex);
#if __STDC_VERSION__ >= 201112L #if __STDC_VERSION__ >= 201112L
#if defined(_Imaginary_I) #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__) #elif defined(__clang__)
#define __CMPLX(x, y, t) (+(_Complex t){ (t)(x), (t)(y) }) #define __CMPLX(x, y, t) (+(_Complex t){ (t)(x), (t)(y) })
#else #else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册