diff options
author | John Hood <cgull@glup.org> | 2018-08-03 17:29:58 -0400 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2018-08-03 17:32:07 -0400 |
commit | 9a606c2f3de38d1586cda2e4f0e72380ed1cc72a (patch) | |
tree | a85e23c27db739cf757c4ce05fb5bcf7238b4219 /src | |
parent | 8ac80db41980a98f99c4e077d8ec436095f7490c (diff) |
src/statesync/completeterminal.cc: fix bad iterator type
Diffstat (limited to 'src')
-rw-r--r-- | src/statesync/completeterminal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statesync/completeterminal.cc b/src/statesync/completeterminal.cc index e7ede84..94bcc14 100644 --- a/src/statesync/completeterminal.cc +++ b/src/statesync/completeterminal.cc @@ -140,9 +140,9 @@ bool Complete::set_echo_ack( uint64_t now ) } } - for ( input_history_type::const_iterator i = input_history.begin(); + for ( input_history_type::iterator i = input_history.begin(); i != input_history.end(); ) { - input_history_type::const_iterator i_next = i; + input_history_type::iterator i_next = i; i_next++; if ( i->first < newest_echo_ack ) { input_history.erase( i ); |