--- branches/development/src/utils/Grid3d.hpp 2011/11/22 20:38:56 1665 +++ branches/development/src/utils/Grid3d.hpp 2013/01/09 15:25:15 1824 @@ -99,8 +99,8 @@ namespace OpenMD { private: int isValidGrid(unsigned int i, unsigned int j, unsigned int k) const { - int index = i * dim2_*dim3_ + j * dim3_ + k; - return index < data_.size() ? index : -1; + unsigned int index = i * dim2_*dim3_ + j * dim3_ + k; + return index < data_.size() ? int(index) : -1; }; unsigned int dim1_;