make the result of the cimag macro a non-lvalue
this change is not necessary but helps diagnose invalid code. based on patch by Jens Gustedt.
This commit is contained in:
1 parent
5ff2a118c6
commit
4075af4318
1 file changed
+1
-1
+1
-1
@@ -103,7 +103,7 @@ long double creall(long double complex);
|
||||
|
||||
#ifndef __cplusplus
|
||||
#define __CIMAG(x, t) \
|
||||
((union { _Complex t __z; t __xy[2]; }){(_Complex t)(x)}.__xy[1])
|
||||
(+(union { _Complex t __z; t __xy[2]; }){(_Complex t)(x)}.__xy[1])
|
||||
|
||||
#define creal(x) ((double)(x))
|
||||
#define crealf(x) ((float)(x))
|
||||
|
||||
Reference in new issue
Block a user