From 67c8c8b331d0fb311fbc351fda88d940865d6f98 Mon Sep 17 00:00:00 2001 From: James Goppert Date: Tue, 12 Jan 2016 01:35:33 -0600 Subject: [PATCH] Cast to float for isfinite. --- matrix/helper_functions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/helper_functions.hpp b/matrix/helper_functions.hpp index d42d0c949a..db23bc576a 100644 --- a/matrix/helper_functions.hpp +++ b/matrix/helper_functions.hpp @@ -10,7 +10,7 @@ namespace matrix template Type wrap_pi(Type x) { - if (!isfinite(x)) { + if (!isfinite(float(x))) { return x; }