From 9b9177f1ce0f6017976b841f88d0842ee3c823a2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 5 Jul 2013 13:35:34 +0200 Subject: Fix a couple of warnings in unit tests. --- test/geo_quaternion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/geo_quaternion.cpp') 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 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); -- cgit v1.2.3