diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/numeric.cpp | 2 |
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); |