3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-13 18:54:43 +00:00

use static_cast to avoid the warnings

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2025-02-13 07:07:12 -10:00
parent e6a089e63d
commit bedc95c4c7
8 changed files with 30 additions and 29 deletions

View file

@ -2014,7 +2014,10 @@ namespace lp {
}
unsigned get_markovich_number(unsigned k, unsigned h) {
return (m_e_matrix.m_columns[k].size() - 1) * (m_e_matrix.m_rows[h].size() - 1);
size_t col_size = m_e_matrix.m_columns[k].size();
size_t row_size = m_e_matrix.m_rows[h].size();
// Subtract 1 from sizes once and multiply
return static_cast<unsigned>((col_size - 1) * (row_size - 1));
}
std::tuple<mpq, unsigned, int, unsigned> find_minimal_abs_coeff(unsigned ei) {