diff --git a/models/correlomatrix_detector.cpp b/models/correlomatrix_detector.cpp index bab3a03043..739b21e964 100644 --- a/models/correlomatrix_detector.cpp +++ b/models/correlomatrix_detector.cpp @@ -228,11 +228,11 @@ nest::correlomatrix_detector::State_::reset( const Parameters_& p ) count_covariance_.clear(); count_covariance_.resize( p.N_channels_ ); - for ( long i = 0; i < p.N_channels_; ++i ) + for ( decltype( p.N_channels_ ) i = 0; i < p.N_channels_; ++i ) { covariance_[ i ].resize( p.N_channels_ ); count_covariance_[ i ].resize( p.N_channels_ ); - for ( long j = 0; j < p.N_channels_; ++j ) + for ( decltype( p.N_channels_ ) j = 0; j < p.N_channels_; ++j ) { covariance_[ i ][ j ].resize( 1 + p.tau_max_.get_steps() / p.delta_tau_.get_steps(), 0 ); count_covariance_[ i ][ j ].resize( 1 + p.tau_max_.get_steps() / p.delta_tau_.get_steps(), 0 ); @@ -349,7 +349,7 @@ nest::correlomatrix_detector::handle( SpikeEvent& e ) for ( SpikelistType::const_iterator spike_j = otherSpikes.begin(); spike_j != otherSpikes.end(); ++spike_j ) { size_t bin; - long other = spike_j->receptor_channel_; + decltype( sender ) other = spike_j->receptor_channel_; long sender_ind, other_ind; if ( spike_i < spike_j->timestep_ ) diff --git a/models/correlospinmatrix_detector.cpp b/models/correlospinmatrix_detector.cpp index ec270da576..6435b909e3 100644 --- a/models/correlospinmatrix_detector.cpp +++ b/models/correlospinmatrix_detector.cpp @@ -392,7 +392,7 @@ nest::correlospinmatrix_detector::handle( SpikeEvent& e ) // yet every impulse in the queue that is further in the past than // this minimum - tau_max cannot contribute to the count covariance long t_min_on = t_i_on; - for ( int n = 0; n < P_.N_channels_; n++ ) + for ( decltype( P_.N_channels_ ) n = 0; n < P_.N_channels_; n++ ) { if ( S_.curr_state_[ n ] ) {