]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parser.cpp
[bugfix] parser::parse_literal_expr(): don't forget to consume the token...
[ginac.git] / ginac / parser / parser.cpp
index f48d37fdf5c495916d7d3c0330d92068ecdde868..6cac523c38625d8bddad69dcbc648d4b629665c4 100644 (file)
@@ -121,6 +121,7 @@ ex parser::parse_number_expr()
 /// literal_expr: 'I' | 'Pi' | 'Euler' | 'Catalan'
 ex parser::parse_literal_expr()
 {
+       get_next_tok(); // consume the literal
        if (scanner->str == "I")
                return I;
        else if (scanner->str == "Pi")