From 187830164d6b43fca7f7de39040367ebb387d68f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 12 Jan 2016 11:50:21 +0100 Subject: [PATCH] Fix cast --- 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 db23bc576a..284644657a 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(float(x))) { + if (!isfinite(Type(x))) { return x; }