aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/half_float.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-06-09 23:02:02 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-06-09 23:02:02 +0200
commita4fd4233adbf4132f24bf989e3099022c5f3e207 (patch)
tree88537e9d7c30660a7ac3b60e10802eacc8b90cc8 /test/half_float.cpp
parentc3e2afce0d2f5b4a3b9d44fc85e5103869299e47 (diff)
Fix compilation with some compilers
Diffstat (limited to 'test/half_float.cpp')
-rw-r--r--test/half_float.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/half_float.cpp b/test/half_float.cpp
index 7ec40f3ae..7b6208873 100644
--- a/test/half_float.cpp
+++ b/test/half_float.cpp
@@ -112,8 +112,8 @@ void test_numtraits()
VERIFY_IS_EQUAL( std::numeric_limits<half>::signaling_NaN().x, half(std::numeric_limits<float>::signaling_NaN()).x );
VERIFY( (std::numeric_limits<half>::min)() > half(0.f) );
VERIFY( (std::numeric_limits<half>::denorm_min)() > half(0.f) );
- VERIFY( (std::numeric_limits<half>::min)()/2 > half(0.f) );
- VERIFY_IS_EQUAL( (std::numeric_limits<half>::denorm_min)()/2, half(0.f) );
+ VERIFY( (std::numeric_limits<half>::min)()/half(2) > half(0.f) );
+ VERIFY_IS_EQUAL( (std::numeric_limits<half>::denorm_min)()/half(2), half(0.f) );
}
void test_arithmetic()