From: Mikko Rasa Date: Sat, 1 Jun 2019 21:49:36 +0000 (+0300) Subject: Use correct type for constant X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=commitdiff_plain;h=407bf1ac9788a58a585e8015e6b2edda73b81758 Use correct type for constant --- diff --git a/source/geometry/angle.h b/source/geometry/angle.h index 2d178d2..fe4895c 100644 --- a/source/geometry/angle.h +++ b/source/geometry/angle.h @@ -155,7 +155,7 @@ inline T operator/(const Angle &a1, const Angle &a2) template inline Angle &Angle::wrap_with_base(const Angle &b) { - const float two_pi = 6.28318530717958647692; + const T two_pi = 6.28318530717958647692; while(value=b.value+two_pi)