diff --git a/core/adapter/reslice.h b/core/adapter/reslice.h index 792f75aa11..775b9ea5a8 100644 --- a/core/adapter/reslice.h +++ b/core/adapter/reslice.h @@ -43,8 +43,8 @@ typename std::enable_if::value && std::is_integr } template -typename std::enable_if::value, value_type>::type inline normalise( - const default_type sum, const default_type norm) { +typename std::enable_if::value && !std::is_integral::value, + value_type>::type inline normalise(const default_type sum, const default_type norm) { return (sum * norm); } } // namespace @@ -98,6 +98,7 @@ template