mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
check for eof, based on testing garbled repro from #1267
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9cd974e334
commit
f179d49f4f
|
@ -124,7 +124,7 @@ namespace smt2 {
|
|||
next();
|
||||
bool is_float = false;
|
||||
|
||||
while (true) {
|
||||
while (!m_at_eof) {
|
||||
char c = curr();
|
||||
if ('0' <= c && c <= '9') {
|
||||
m_number = rational(10)*m_number + rational(c - '0');
|
||||
|
|
Loading…
Reference in a new issue