Changeset 956 in Sophya for trunk/SophyaLib/TArray/basarr.h
- Timestamp:
- Apr 17, 2000, 6:56:24 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/basarr.h
r926 r956 147 147 protected: 148 148 inline int CheckDI(int ka, int msg) const ; 149 inline void CheckBound( intix, uint_4 iy, uint_4 iz, uint_4 it, uint_4 iu, int msg) const ;149 inline void CheckBound(uint_4 ix, uint_4 iy, uint_4 iz, uint_4 it, uint_4 iu, int msg) const ; 150 150 // Changing Sizes/NDim ... return true if OK 151 151 bool UpdateSizes(uint_4 ndim, const uint_4 * siz, uint_4 step, uint_8 offset, string & exmsg); … … 190 190 inline int BaseArray::CheckDI(int ka, int msg) const 191 191 { 192 if ( (ka < 0) || ( ka >= ndim_) ) {192 if ( (ka < 0) || ((uint_4) ka >= ndim_) ) { 193 193 string txt = "BaseArray::CheckDimensionIndex/Error "; txt += ck_op_msg_[msg]; 194 194 throw(RangeCheckError(txt)); … … 198 198 199 199 //! to verify the compatibility of the indexes in all dimensions 200 inline void BaseArray::CheckBound( intix, uint_4 iy, uint_4 iz, uint_4 it, uint_4 iu, int msg) const200 inline void BaseArray::CheckBound(uint_4 ix, uint_4 iy, uint_4 iz, uint_4 it, uint_4 iu, int msg) const 201 201 { 202 202 if ( (ix >= size_[0]) || (iy >= size_[1]) || (iz > size_[2]) ||
Note:
See TracChangeset
for help on using the changeset viewer.