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

add disambiguation, avoid uninitialzed variable passing in debug mode

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-05-09 15:27:42 -07:00
parent 445a2280d3
commit d43c12413d
2 changed files with 1 additions and 2 deletions

View file

@ -180,7 +180,7 @@ void random_updater::add_value(numeric_pair<mpq>& v) {
}
void random_updater::remove_value(numeric_pair<mpq>& v) {
auto it = m_values.find(v);
std::unordered_map<numeric_pair<mpq>, unsigned>::iterator it = m_values.find(v);
lean_assert(it != m_values.end());
it->second--;
if (it->second == 0)