]> git.tdb.fi Git - libs/math.git/commitdiff
Use correct type for constant
authorMikko Rasa <tdb@tdb.fi>
Sat, 1 Jun 2019 21:49:36 +0000 (00:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 1 Jun 2019 21:49:36 +0000 (00:49 +0300)
source/geometry/angle.h

index 2d178d2235128f6e88a62d37fc00dfd8f0d09988..fe4895cfe7635ebe85e58e83b353b81dc2561208 100644 (file)
@@ -155,7 +155,7 @@ inline T operator/(const Angle<T> &a1, const Angle<T> &a2)
 template<typename T>
 inline Angle<T> &Angle<T>::wrap_with_base(const Angle<T> &b)
 {
-       const float two_pi = 6.28318530717958647692;
+       const T two_pi = 6.28318530717958647692;
        while(value<b.value)
                value += two_pi;
        while(value>=b.value+two_pi)