diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-07-05 13:35:34 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-07-05 13:35:34 +0200 |
commit | 9b9177f1ce0f6017976b841f88d0842ee3c823a2 (patch) | |
tree | 80a695e97df661961d63d2a241f3fdf3d8e4e17b /test/geo_quaternion.cpp | |
parent | 7d8823c8b7b637fcbf1f3356e2cdb8d5dc80c607 (diff) |
Fix a couple of warnings in unit tests.
Diffstat (limited to 'test/geo_quaternion.cpp')
-rw-r--r-- | test/geo_quaternion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/geo_quaternion.cpp b/test/geo_quaternion.cpp index 06b3af7c1..27040dd4d 100644 --- a/test/geo_quaternion.cpp +++ b/test/geo_quaternion.cpp @@ -31,7 +31,7 @@ template<typename QuatType> void check_slerp(const QuatType& q0, const QuatType& Scalar theta_tot = AA(q1*q0.inverse()).angle(); if(theta_tot>M_PI) - theta_tot = 2.*M_PI-theta_tot; + theta_tot = Scalar(2.*M_PI)-theta_tot; for(Scalar t=0; t<=1.001; t+=0.1) { QuatType q = q0.slerp(t,q1); |