From f680714c0378a80e1638824c70c5ec62d6ade8ee Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 1 Aug 2017 17:41:17 +0200 Subject: [PATCH] Fix fp16_test compilation with f16c-enabled compilation flags. --- fp16_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fp16_test.cpp b/fp16_test.cpp index 058c912..d95e5c6 100644 --- a/fp16_test.cpp +++ b/fp16_test.cpp @@ -45,6 +45,10 @@ union fp64 { double f; unsigned long long ll; }; +union fp32 { + float f; + unsigned int u; +}; TEST(FP16Test, NaN) { // Ignore the sign bit. -- 2.39.2