mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 02:15:19 +00:00
cast variables to avoid compiler warning on signed/unsigned comparison
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
This commit is contained in:
parent
227c8870d6
commit
92cfc242d2
|
@ -55,9 +55,8 @@ void theory_wmaxsat::get_assignment(svector<bool>& result) {
|
|||
}
|
||||
else {
|
||||
std::sort(m_cost_save.begin(), m_cost_save.end());
|
||||
unsigned j = 0;
|
||||
for (theory_var i = 0; i < m_vars.size(); ++i) {
|
||||
if (j < m_cost_save.size() && m_cost_save[j] == i) {
|
||||
for (unsigned i = 0,j = 0; i < m_vars.size(); ++i) {
|
||||
if (j < m_cost_save.size() && m_cost_save[j] == static_cast<theory_var>(i)) {
|
||||
result.push_back(false);
|
||||
++j;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue