Skip to content

Commit

Permalink
fix: more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
muffgaga committed Dec 1, 2023
1 parent 995cabe commit b892930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions models/correlomatrix_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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_ )
Expand Down
2 changes: 1 addition & 1 deletion models/correlospinmatrix_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] )
{
Expand Down

0 comments on commit b892930

Please sign in to comment.