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

deal with warnings

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-06-06 17:13:32 -07:00
parent 4f9a27693d
commit 44b0b0148b
2 changed files with 2 additions and 1 deletions

View file

@ -100,7 +100,7 @@ namespace sat {
v /= 10;
SASSERT(d > digits);
}
SASSERT(len + lastd - d < sizeof(buffer));
SASSERT(len + lastd < sizeof(buffer) + d);
memcpy(buffer + len, d, lastd - d);
len += static_cast<unsigned>(lastd - d);
buffer[len++] = ' ';

View file

@ -439,6 +439,7 @@ void asserted_formulas::commit(unsigned new_qhead) {
justified_expr const& j = m_formulas[i];
update_substitution(j.get_fml(), j.get_proof());
}
(void)new_sub;
m_qhead = new_qhead;
}