Ignore:
Timestamp:
03/25/18 16:32:05 (7 years ago)
Author:
tbretz
Message:
Improved compiler warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimcamera/MSimCamera.cc

    r18333 r18957  
    155155    }
    156156    // Check all entries for inf and nan. Those are not accepted here.
    157     for( int row_index=0; row_index<fFixTimeOffsetsBetweenPixelsInNs->fM.size(); row_index++){
    158         std::vector<double> row = fFixTimeOffsetsBetweenPixelsInNs->fM.at(row_index);
    159         for( int col_index=0; col_index<row.size(); col_index++){
    160             double specific_delay = row.at(col_index);
    161             if( std::isnan(specific_delay) || std::isinf(specific_delay) ){
     157    for(size_t row_index=0; row_index<fFixTimeOffsetsBetweenPixelsInNs->fM.size(); row_index++){
     158        const vector<double> row = fFixTimeOffsetsBetweenPixelsInNs->fM.at(row_index);
     159        for(size_t col_index=0; col_index<row.size(); col_index++){
     160            const double specific_delay = row.at(col_index);
     161            if( isnan(specific_delay) || isinf(specific_delay) ){
    162162                *fLog << err << "In Source: "<< __FILE__ <<" in line: ";
    163163                *fLog << __LINE__;
Note: See TracChangeset for help on using the changeset viewer.