From 3df9caf435339585459b7bc00a54ab8f2029f3de Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 13 Oct 2017 10:29:49 -0400 Subject: [PATCH] drop const qualifier to allow bracketing of lookup index --- src/MOLECULE/angle_table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MOLECULE/angle_table.cpp b/src/MOLECULE/angle_table.cpp index a3201153da..6e145efa10 100644 --- a/src/MOLECULE/angle_table.cpp +++ b/src/MOLECULE/angle_table.cpp @@ -615,7 +615,7 @@ void AngleTable::uf_lookup(int type, double x, double &u, double &f) double fraction,a,b; const Table *tb = &tables[tabindex[type]]; - const int itable = static_cast (x * tb->invdelta); + int itable = static_cast (x * tb->invdelta); if (itable < 0) itable = 0; if (itable >= tablength) itable = tablength-1; @@ -650,7 +650,7 @@ void AngleTable::u_lookup(int type, double x, double &u) double fraction,a,b; const Table *tb = &tables[tabindex[type]]; - const int itable = static_cast ( x * tb->invdelta); + int itable = static_cast ( x * tb->invdelta); if (itable < 0) itable = 0; if (itable >= tablength) itable = tablength-1;