3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

use signed char per porting issue for ARM/64

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-06-02 15:53:32 -07:00
parent cccd37101e
commit 1d46d5c870
5 changed files with 24 additions and 22 deletions

View file

@ -36,7 +36,7 @@ void throw_invalid_reference() {
struct z3_replayer::imp {
z3_replayer & m_owner;
std::istream & m_stream;
char m_curr; // current char;
signed char m_curr; // current char;
int m_line; // line
svector<char> m_string;
symbol m_id;
@ -158,7 +158,7 @@ struct z3_replayer::imp {
}
}
char curr() const { return m_curr; }
signed char curr() const { return m_curr; }
void new_line() { m_line++; }
void next() { m_curr = m_stream.get(); }
@ -168,7 +168,7 @@ struct z3_replayer::imp {
m_string.reset();
next();
while (true) {
char c = curr();
signed char c = curr();
if (c == EOF) {
throw z3_replayer_exception("unexpected end of file");
}