sbmask function should be flagged as const indicating no side effects

This commit is contained in:
Axel Kohlmeyer
2017-06-07 17:10:33 -04:00
parent 1f9504c546
commit 31a734b03d
4 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@ class Compute : protected Pointers {
double **vbiasall; // stored velocity bias for all atoms
int maxbias; // size of vbiasall array
inline int sbmask(int j) {
inline int sbmask(int j) const {
return j >> SBBITS & 3;
}