3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

annotate enode hash as signed character to address issue #210

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-09-29 14:14:29 -07:00
parent 074ff58739
commit 77c423b9aa
4 changed files with 10 additions and 10 deletions

View file

@ -92,7 +92,7 @@ namespace smt2 {
scanner::token scanner::read_symbol_core() {
while (true) {
char c = curr();
char n = m_normalized[static_cast<unsigned char>(c)];
signed char n = m_normalized[static_cast<unsigned char>(c)];
if (n == 'a' || n == '0' || n == '-') {
m_string.push_back(c);
next();
@ -257,7 +257,7 @@ namespace smt2 {
m_smtlib2_compliant = ctx.params().m_smtlib2_compliant;
for (int i = 0; i < 256; ++i) {
m_normalized[i] = (char) i;
m_normalized[i] = (signed char) i;
}
m_normalized[static_cast<int>('\t')] = ' ';
m_normalized[static_cast<int>('\r')] = ' ';

View file

@ -42,7 +42,7 @@ namespace smt2 {
rational m_number;
unsigned m_bv_size;
// end of data
char m_normalized[256];
signed char m_normalized[256];
#define SCANNER_BUFFER_SIZE 1024
char m_buffer[SCANNER_BUFFER_SIZE];
unsigned m_bpos;