diff --git a/Storage/Tape/Parsers/TapeParser.hpp b/Storage/Tape/Parsers/TapeParser.hpp index c696b205d..4ae1d092f 100644 --- a/Storage/Tape/Parsers/TapeParser.hpp +++ b/Storage/Tape/Parsers/TapeParser.hpp @@ -35,7 +35,7 @@ template class Parser { while(!has_next_symbol_ && !tape->is_at_end()) { process_pulse(tape->get_next_pulse()); } - if(tape->is_at_end()) mark_end(); + if(!has_next_symbol_ && tape->is_at_end()) mark_end(); has_next_symbol_ = false; return next_symbol_; }