From 4034c916c7fc41048306f1f7e8226c824868662b Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 12 Jan 2016 07:49:41 +0100 Subject: [PATCH] added missing cast --- matrix/Euler.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix/Euler.hpp b/matrix/Euler.hpp index 53d23d02b1..98eae6e9e9 100644 --- a/matrix/Euler.hpp +++ b/matrix/Euler.hpp @@ -56,13 +56,13 @@ public: psi() = 0; theta() = 0; phi() = 0; - if (psi() >= -M_PI_2 && psi() <= M_PI_2) { + if (psi() >= -(Type)M_PI_2 && psi() <= (Type)M_PI_2) { psi() = psi_val; } - if (theta() >= -M_PI_2 && theta() <= M_PI_2) { + if (theta() >= -(Type)M_PI_2 && theta() <= (Type)M_PI_2) { theta() = theta_val; } - if (phi() >= -M_PI_2 && phi() <= M_PI_2) { + if (phi() >= -(Type)M_PI_2 && phi() <= (Type)M_PI_2) { phi() = phi_val; } }