File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -228,11 +228,11 @@ nest::correlomatrix_detector::State_::reset( const Parameters_& p )
228
228
count_covariance_.clear ();
229
229
count_covariance_.resize ( p.N_channels_ );
230
230
231
- for ( long i = 0 ; i < p.N_channels_ ; ++i )
231
+ for ( decltype ( p. N_channels_ ) i = 0 ; i < p.N_channels_ ; ++i )
232
232
{
233
233
covariance_[ i ].resize ( p.N_channels_ );
234
234
count_covariance_[ i ].resize ( p.N_channels_ );
235
- for ( long j = 0 ; j < p.N_channels_ ; ++j )
235
+ for ( decltype ( p. N_channels_ ) j = 0 ; j < p.N_channels_ ; ++j )
236
236
{
237
237
covariance_[ i ][ j ].resize ( 1 + p.tau_max_ .get_steps () / p.delta_tau_ .get_steps (), 0 );
238
238
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 )
349
349
for ( SpikelistType::const_iterator spike_j = otherSpikes.begin (); spike_j != otherSpikes.end (); ++spike_j )
350
350
{
351
351
size_t bin;
352
- long other = spike_j->receptor_channel_ ;
352
+ decltype ( sender ) other = spike_j->receptor_channel_ ;
353
353
long sender_ind, other_ind;
354
354
355
355
if ( spike_i < spike_j->timestep_ )
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ nest::correlospinmatrix_detector::handle( SpikeEvent& e )
392
392
// yet every impulse in the queue that is further in the past than
393
393
// this minimum - tau_max cannot contribute to the count covariance
394
394
long t_min_on = t_i_on;
395
- for ( int n = 0 ; n < P_.N_channels_ ; n++ )
395
+ for ( decltype ( P_. N_channels_ ) n = 0 ; n < P_.N_channels_ ; n++ )
396
396
{
397
397
if ( S_.curr_state_ [ n ] )
398
398
{
You can’t perform that action at this time.
0 commit comments