Skip to content

Commit 618bdf3

Browse files
committed
Fix test for std::sqrt promoting float result to double
1 parent a5faa8d commit 618bdf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_complex_class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void test_abs()
152152

153153
complex_scalar lhs {T{1}, T{1}};
154154

155-
BOOST_TEST(test_equal(abs(lhs), sqrt(T{2})));
155+
BOOST_TEST(test_equal(static_cast<T>(abs(lhs)), static_cast<T>(sqrt(T{2}))));
156156
}
157157

158158
template <typename T>

0 commit comments

Comments
 (0)