3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-11 21:50:52 +00:00

fix out of bounds bug

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2025-01-23 16:12:12 -10:00 committed by Lev Nachmanson
parent 3990df6d91
commit ef55de1646
3 changed files with 10 additions and 9 deletions

View file

@ -51,7 +51,7 @@ void indexed_vector<T>::clear() {
}
template <typename T>
void indexed_vector<T>::clear_all() {
unsigned i = m_data.size();
unsigned i = static_cast<unsigned>(m_data.size());
while (i--) m_data[i] = numeric_traits<T>::zero();
m_index.resize(0);
}