[Midnightbsd-cvs] src: complex.h: work around a GCC 4.2 bug.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jan 5 10:16:58 EST 2012
Log Message:
-----------
work around a GCC 4.2 bug.
typeof(1.0fi) != float _Complex
typeof((float _Complex)1.0fi) != float _Complex
typeof((float _Complex)1.0i) == float _Complex
In other words: if casting to an equal size, GCC seems to take a
shortcut. By casting down from a double to a float, GCC doesn't take
this shortcut, yielding the proper type.
Obtained from: FreeBSD
Modified Files:
--------------
src/include:
complex.h (r1.1.1.1 -> r1.2)
(http://cvsweb.midnightbsd.org/src/include/complex.h?r1=1.1.1.1&r2=1.2)
More information about the Midnightbsd-cvs
mailing list