diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-12-20 15:00:24 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-12-23 06:45:47 -0800 |
commit | 6e30181b4a3ab6c56da0378b65f4d60504982300 (patch) | |
tree | 74d8259530d69b3a855ef67da9df377fae0f658c /README | |
parent | a4b413135535c83a25a8b2d661bf1c75006dfa15 (diff) | |
download | glibc-6e30181b4a3ab6c56da0378b65f4d60504982300.zip glibc-6e30181b4a3ab6c56da0378b65f4d60504982300.tar.gz glibc-6e30181b4a3ab6c56da0378b65f4d60504982300.tar.bz2 |
math: Properly cast X_TLOSS to float [BZ #28713]
Add
#define AS_FLOAT_CONSTANT_1(x) x##f
#define AS_FLOAT_CONSTANT(x) AS_FLOAT_CONSTANT_1(x)
to cast X_TLOSS to float at compile-time to fix:
FAIL: math/test-float-j0
FAIL: math/test-float-jn
FAIL: math/test-float-y0
FAIL: math/test-float-y1
FAIL: math/test-float-yn
FAIL: math/test-float32-j0
FAIL: math/test-float32-jn
FAIL: math/test-float32-y0
FAIL: math/test-float32-y1
FAIL: math/test-float32-yn
when compiling with GCC 12.
Reviewed-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions