--- branches/development/src/utils/Grid3d.hpp 2011/11/22 20:38:56 1665 +++ branches/development/src/utils/Grid3d.hpp 2012/07/06 22:01:58 1767 @@ -99,7 +99,7 @@ namespace OpenMD { private: int isValidGrid(unsigned int i, unsigned int j, unsigned int k) const { - int index = i * dim2_*dim3_ + j * dim3_ + k; + unsigned int index = i * dim2_*dim3_ + j * dim3_ + k; return index < data_.size() ? index : -1; };