ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/utils/Grid3d.hpp
(Generate patch)

Comparing branches/development/src/utils/Grid3d.hpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1824 by gezelter, Wed Jan 9 15:25:15 2013 UTC

# Line 99 | Line 99 | namespace OpenMD {
99    private:
100      
101      int isValidGrid(unsigned int i, unsigned int j, unsigned int k) const {
102 <      int index = i * dim2_*dim3_ + j * dim3_ + k;
103 <      return index < data_.size() ? index : -1;
102 >      unsigned int index = i * dim2_*dim3_ + j * dim3_ + k;
103 >      return index < data_.size() ? int(index) : -1;
104      };
105      
106      unsigned int dim1_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines