sbmask function should be flagged as const indicating no side effects
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user