]> git.mxchange.org Git - flightgear.git/commitdiff
Fix MSVC build issue.
authorThorstenB <brehmt@gmail.com>
Sun, 19 Feb 2012 19:30:15 +0000 (20:30 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 19 Feb 2012 19:30:15 +0000 (20:30 +0100)
MSVC complained about ambiguous "floor" when T=<int>.

src/Network/generic.hxx

index 627f3ef604cc84b0fe647efe70f019d8ca26dfaa..55f0ca8a5675df995d5c57cab9b67297bab167c8 100644 (file)
@@ -113,7 +113,7 @@ private:
       if( prot.max > prot.min )
       {
         if( prot.wrap )
-          new_val = SGMisc<T>::normalizePeriodic(prot.min, prot.max, new_val);
+          new_val = SGMisc<double>::normalizePeriodic(prot.min, prot.max, new_val);
         else
           new_val = SGMisc<T>::clip(new_val, prot.min, prot.max);
       }