summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-02-09 18:33:31 +0100
committerSmallJoker <mk939@ymail.com>2019-02-09 18:33:31 +0100
commitb7e1bca28c2c551198d284473c22b0293139163d (patch)
tree870ceb70e34b93093ebb01de66ec88aba2fe536b /src/util
parentf5bdc04ab5b47bd094ba0ced5f086e8fe6b12298 (diff)
downloadminetest-b7e1bca28c2c551198d284473c22b0293139163d.tar.gz
minetest-b7e1bca28c2c551198d284473c22b0293139163d.tar.bz2
minetest-b7e1bca28c2c551198d284473c22b0293139163d.zip
numeric: Fix clang, broken since d5456da
Diffstat (limited to 'src/util')
-rw-r--r--src/util/numeric.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/numeric.cpp b/src/util/numeric.cpp
index bd298e94e..1af3f66be 100644
--- a/src/util/numeric.cpp
+++ b/src/util/numeric.cpp
@@ -201,7 +201,7 @@ v3f getPitchYawRollRad(const core::matrix4 &m)
const f32 *M = m.pointer();
f64 a1 = atan2(M[1], M[5]);
- f64 c2 = sqrt(M[10]*M[10] + M[8]*M[8]);
+ f32 c2 = std::sqrt((f64)M[10]*M[10] + (f64)M[8]*M[8]);
f32 a2 = atan2f(-M[9], c2);
f64 c1 = cos(a1);
f64 s1 = sin(a1);