ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/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.
trunk/src/utils/Grid3d.hpp (file contents), Revision 1792 by gezelter, Fri Aug 31 17:29:35 2012 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