3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 20:38:43 +00:00

Fix EOF detection when char is unsigned.

This commit is contained in:
Jerry James 2020-01-23 14:27:59 -07:00 committed by Nikolaj Bjorner
parent ce0ccc2e9e
commit a3b715b963

View file

@ -480,7 +480,7 @@ scanner::token scanner::scan() {
return read_number(ch, true);
case '#':
return read_bv_literal();
case -1:
case static_cast<char>(-1):
m_state = EOF_TOKEN;
break;
default: