]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/lexer.cpp
lexer: when switching to another output stream, clean last read character.
[ginac.git] / ginac / parser / lexer.cpp
index ed1f894fea381bdc9c553d9a2811ff12b1697bcb..894a2ad8afeef8ae484eca01274290dc00074815 100644 (file)
@@ -126,6 +126,7 @@ void lexer::switch_input(std::istream* in)
        input = in;
        line_num = 0;
        column = 0;
+       c = ' ';
 }
 
 } // namespace GiNaC