Skip to content

Commit

Permalink
numeric: Fix clang, broken since d5456da
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Feb 9, 2019
1 parent f5bdc04 commit b7e1bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/numeric.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit b7e1bca

Please sign in to comment.