From 81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Fri, 10 Jan 2020 11:26:00 +0100 Subject: added explicit static_cast where needed --- Source/Filter/NCIGodfreyFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Filter/NCIGodfreyFilter.cpp') diff --git a/Source/Filter/NCIGodfreyFilter.cpp b/Source/Filter/NCIGodfreyFilter.cpp index 8723322f6..41ae67768 100644 --- a/Source/Filter/NCIGodfreyFilter.cpp +++ b/Source/Filter/NCIGodfreyFilter.cpp @@ -35,7 +35,7 @@ void NCIGodfreyFilter::ComputeStencils(){ "ERROR: NCI filter requires 5 points in z"); // Interpolate coefficients from the table, and store into prestencil. - int index = tab_length*m_cdtodz; + auto index = static_cast(tab_length*m_cdtodz); index = min(index, tab_length-2); index = max(index, 0); Real weight_right = m_cdtodz - index/tab_length; -- cgit v1.2.3