Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize the codebase - convert C-style casts to static_casts #2506

Merged
merged 6 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libnestutil/numerics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const double numerics::nan = 0.0 / 0.0;
long
ld_round( double x )
{
return ( long ) std::floor( x + 0.5 );
return static_cast< long >( std::floor( x + 0.5 ) );
}

double
Expand Down
4 changes: 2 additions & 2 deletions libnestutil/stopwatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Stopwatch

enum
{
MICROSEC = ( timeunit_t ) 1,
MICROSEC = static_cast< timeunit_t >( 1 ),
MILLISEC = MICROSEC * 1000,
SECONDS = MILLISEC * 1000,
MINUTES = SECONDS * 60,
Expand Down Expand Up @@ -222,7 +222,7 @@ nest::Stopwatch::elapsed_timestamp() const
return _end - _beg + _prev_elapsed;
}
#else
return ( timestamp_t ) 0;
return static_cast< timestamp_t >( 0 );
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion models/ac_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ nest::ac_generator::pre_run_hook()
void
nest::ac_generator::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
jougs marked this conversation as resolved.
Show resolved Hide resolved

long start = origin.get_steps();
Expand Down
2 changes: 1 addition & 1 deletion models/aeif_cond_alpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ nest::aeif_cond_alpha::pre_run_hook()
void
nest::aeif_cond_alpha::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );

Expand Down
4 changes: 2 additions & 2 deletions models/aeif_cond_alpha_multisynapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ aeif_cond_alpha_multisynapse::pre_run_hook()
void
aeif_cond_alpha_multisynapse::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );

Expand Down Expand Up @@ -590,7 +590,7 @@ aeif_cond_alpha_multisynapse::handle( SpikeEvent& e )
"must be positive." );
}
assert( e.get_delay_steps() > 0 );
assert( ( e.get_rport() > 0 ) and ( ( size_t ) e.get_rport() <= P_.n_receptors() ) );
assert( ( e.get_rport() > 0 ) and ( static_cast< size_t >( e.get_rport() ) <= P_.n_receptors() ) );

B_.spikes_[ e.get_rport() - 1 ].add_value(
e.get_rel_delivery_steps( kernel().simulation_manager.get_slice_origin() ), e.get_weight() * e.get_multiplicity() );
Expand Down
4 changes: 2 additions & 2 deletions models/aeif_cond_beta_multisynapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ aeif_cond_beta_multisynapse::pre_run_hook()
void
aeif_cond_beta_multisynapse::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );

Expand Down Expand Up @@ -599,7 +599,7 @@ aeif_cond_beta_multisynapse::handle( SpikeEvent& e )
"must be positive." );
}
assert( e.get_delay_steps() > 0 );
assert( ( e.get_rport() > 0 ) and ( ( size_t ) e.get_rport() <= P_.n_receptors() ) );
assert( ( e.get_rport() > 0 ) and ( static_cast< size_t >( e.get_rport() ) <= P_.n_receptors() ) );

B_.spikes_[ e.get_rport() - 1 ].add_value(
e.get_rel_delivery_steps( kernel().simulation_manager.get_slice_origin() ), e.get_weight() * e.get_multiplicity() );
Expand Down
2 changes: 1 addition & 1 deletion models/aeif_cond_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ nest::aeif_cond_exp::pre_run_hook()
void
nest::aeif_cond_exp::update( const Time& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );

Expand Down
2 changes: 1 addition & 1 deletion models/aeif_psc_alpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ nest::aeif_psc_alpha::pre_run_hook()
void
nest::aeif_psc_alpha::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );

Expand Down
2 changes: 1 addition & 1 deletion models/aeif_psc_delta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ nest::aeif_psc_delta::pre_run_hook()
void
nest::aeif_psc_delta::update( const Time& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );
const double h = Time::get_resolution().get_ms();
Expand Down
2 changes: 1 addition & 1 deletion models/aeif_psc_delta_clopath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ nest::aeif_psc_delta_clopath::pre_run_hook()
void
nest::aeif_psc_delta_clopath::update( const Time& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );

Expand Down
2 changes: 1 addition & 1 deletion models/aeif_psc_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ nest::aeif_psc_exp::pre_run_hook()
void
nest::aeif_psc_exp::update( const Time& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );
assert( State_::V_M == 0 );

Expand Down
2 changes: 1 addition & 1 deletion models/amat2_psc_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ nest::amat2_psc_exp::pre_run_hook()
void
nest::amat2_psc_exp::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

// evolve from timestep 'from' to timestep 'to' with steps of h each
Expand Down
2 changes: 1 addition & 1 deletion models/binary_neuron.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ template < class TGainfunction >
void
binary_neuron< TGainfunction >::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
4 changes: 2 additions & 2 deletions models/cm_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ nest::cm_default::pre_run_hook()
void
nest::cm_default::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down Expand Up @@ -336,7 +336,7 @@ nest::cm_default::handle( SpikeEvent& e )
}

assert( e.get_delay_steps() > 0 );
assert( ( e.get_rport() >= 0 ) and ( ( size_t ) e.get_rport() < syn_buffers_.size() ) );
assert( ( e.get_rport() >= 0 ) and ( static_cast< size_t >( e.get_rport() ) < syn_buffers_.size() ) );

syn_buffers_[ e.get_rport() ].add_value(
e.get_rel_delivery_steps( kernel().simulation_manager.get_slice_origin() ), e.get_weight() * e.get_multiplicity() );
Expand Down
2 changes: 1 addition & 1 deletion models/dc_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ nest::dc_generator::pre_run_hook()
void
nest::dc_generator::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

long start = origin.get_steps();
Expand Down
2 changes: 1 addition & 1 deletion models/gamma_sup_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ nest::gamma_sup_generator::pre_run_hook()
void
nest::gamma_sup_generator::update( Time const& T, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

if ( P_.rate_ <= 0 or P_.num_targets_ == 0 )
Expand Down
2 changes: 1 addition & 1 deletion models/gif_cond_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void
nest::gif_cond_exp::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
4 changes: 2 additions & 2 deletions models/gif_cond_exp_multisynapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ void
nest::gif_cond_exp_multisynapse::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down Expand Up @@ -591,7 +591,7 @@ nest::gif_cond_exp_multisynapse::handle( SpikeEvent& e )
"must be non-negative." );
}
assert( e.get_delay_steps() > 0 );
assert( ( e.get_rport() > 0 ) and ( ( size_t ) e.get_rport() <= P_.n_receptors() ) );
assert( ( e.get_rport() > 0 ) and ( static_cast< size_t >( e.get_rport() ) <= P_.n_receptors() ) );

B_.spikes_[ e.get_rport() - 1 ].add_value(
e.get_rel_delivery_steps( kernel().simulation_manager.get_slice_origin() ), e.get_weight() * e.get_multiplicity() );
Expand Down
4 changes: 2 additions & 2 deletions models/gif_pop_psc_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ nest::gif_pop_psc_exp::get_history_size()
}
if ( k * V_.h_ <= P_.t_ref_ )
{
k = ( int ) ( P_.t_ref_ / V_.h_ ) + 1;
k = static_cast< int >( P_.t_ref_ / V_.h_ ) + 1;
}
return k;
}
Expand All @@ -488,7 +488,7 @@ nest::gif_pop_psc_exp::get_history_size()
void
nest::gif_pop_psc_exp::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/gif_psc_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void
nest::gif_psc_exp::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
4 changes: 2 additions & 2 deletions models/gif_psc_exp_multisynapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void
nest::gif_psc_exp_multisynapse::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down Expand Up @@ -427,7 +427,7 @@ void
gif_psc_exp_multisynapse::handle( SpikeEvent& e )
{
assert( e.get_delay_steps() > 0 );
assert( ( e.get_rport() > 0 ) and ( ( size_t ) e.get_rport() <= P_.n_receptors_() ) );
assert( ( e.get_rport() > 0 ) and ( static_cast< size_t >( e.get_rport() ) <= P_.n_receptors_() ) );

B_.spikes_[ e.get_rport() - 1 ].add_value(
e.get_rel_delivery_steps( kernel().simulation_manager.get_slice_origin() ), e.get_weight() * e.get_multiplicity() );
Expand Down
2 changes: 1 addition & 1 deletion models/hh_cond_beta_gap_traub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ nest::hh_cond_beta_gap_traub::update_( Time const& origin,
const bool called_from_wfr_update )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

const size_t interpolation_order = kernel().simulation_manager.get_wfr_interpolation_order();
Expand Down
2 changes: 1 addition & 1 deletion models/hh_cond_exp_traub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ nest::hh_cond_exp_traub::pre_run_hook()
void
nest::hh_cond_exp_traub::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/hh_psc_alpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ void
nest::hh_psc_alpha::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/hh_psc_alpha_clopath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ void
nest::hh_psc_alpha_clopath::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/hh_psc_alpha_gap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ bool
nest::hh_psc_alpha_gap::update_( Time const& origin, const long from, const long to, const bool called_from_wfr_update )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

const size_t interpolation_order = kernel().simulation_manager.get_wfr_interpolation_order();
Expand Down
2 changes: 1 addition & 1 deletion models/ht_neuron.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ nest::ht_neuron::set_status( const DictionaryDatum& d )
void
ht_neuron::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_chs_2007.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ nest::iaf_chs_2007::pre_run_hook()
void
nest::iaf_chs_2007::update( const Time& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

// evolve from timestep 'from' to timestep 'to' with steps of h each
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_chxk_2008.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ void
nest::iaf_chxk_2008::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_cond_alpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ void
nest::iaf_cond_alpha::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_cond_alpha_mc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void
nest::iaf_cond_alpha_mc::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_cond_beta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void
nest::iaf_cond_beta::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_cond_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void
nest::iaf_cond_exp::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_cond_exp_sfa_rr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ void
nest::iaf_cond_exp_sfa_rr::update( Time const& origin, const long from, const long to )
{

assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_psc_alpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ iaf_psc_alpha::pre_run_hook()
void
iaf_psc_alpha::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_psc_alpha_multisynapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ iaf_psc_alpha_multisynapse::pre_run_hook()
void
iaf_psc_alpha_multisynapse::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

for ( long lag = from; lag < to; ++lag )
Expand Down
2 changes: 1 addition & 1 deletion models/iaf_psc_delta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ nest::iaf_psc_delta::pre_run_hook()
void
nest::iaf_psc_delta::update( Time const& origin, const long from, const long to )
{
assert( to >= 0 and ( delay ) from < kernel().connection_manager.get_min_delay() );
assert( to >= 0 and static_cast< delay >( from ) < kernel().connection_manager.get_min_delay() );
assert( from < to );

const double h = Time::get_resolution().get_ms();
Expand Down
Loading