Cast to float for isfinite.

This commit is contained in:
James Goppert 2016-01-12 01:35:33 -06:00
parent f1968f51d6
commit 67c8c8b331

View File

@ -10,7 +10,7 @@ namespace matrix
template<typename Type>
Type wrap_pi(Type x)
{
if (!isfinite(x)) {
if (!isfinite(float(x))) {
return x;
}