1
0
Fork 0

Fix MSVC build issue.

MSVC complained about ambiguous "floor" when T=<int>.
This commit is contained in:
ThorstenB 2012-02-19 20:30:15 +01:00
parent f589f2c405
commit 632824e4d8

View 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);
}