Skip to content

Commit fbf815e

Browse files
committed
fix an performance-type-promotion-in-math-fn issue
1 parent 2544c32 commit fbf815e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multi_physics/QED/QED_tests/test_picsar_vec_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void test_norm()
6262
const auto c0 = static_cast<RealType>(1.0);
6363
const auto c1 = static_cast<RealType>(2.0);
6464
const auto c2 = static_cast<RealType>(3.0);
65-
const auto expected = static_cast<RealType>(sqrt(c0*c0 + c1*c1 + c2*c2));
65+
const auto expected = static_cast<RealType>(std::sqrt(c0*c0 + c1*c1 + c2*c2));
6666

6767
const auto vec = vec3<RealType>{c0, c1, c2};
6868

0 commit comments

Comments
 (0)