Cast to float for isfinite.

This commit is contained in:
James Goppert
2016-01-12 01:35:33 -06:00
parent f1968f51d6
commit 67c8c8b331
+1 -1
View File
@@ -10,7 +10,7 @@ namespace matrix
template<typename Type> template<typename Type>
Type wrap_pi(Type x) Type wrap_pi(Type x)
{ {
if (!isfinite(x)) { if (!isfinite(float(x))) {
return x; return x;
} }