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:
parent
3990df6d91
commit
ef55de1646
3 changed files with 10 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue