Skip to content

Commit 0e71adf

Browse files
committed
fix some warnings
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent 7bba8bc commit 0e71adf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/math/lp/dioph_eq.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ namespace lp {
289289
if (!contains(m_active_terms, t)) {
290290
for (int i = m_added_terms.size() - 1; i >= 0; --i) {
291291
if (m_added_terms[i] != t) continue;
292-
if (i != m_added_terms.size() -1)
292+
if ((unsigned)i != m_added_terms.size() -1)
293293
m_added_terms[i] = m_added_terms.back();
294294
m_added_terms.pop_back();
295295
break; // all is done since the term has not made it to m_active_terms
@@ -350,7 +350,7 @@ namespace lp {
350350
make_sure_j_is_in_the_last_row_of_l_matrix();
351351
const auto &last_e_row = m_l_matrix.m_rows.back();
352352
mpq alpha;
353-
for (const auto p: last_e_row) {
353+
for (const auto& p: last_e_row) {
354354
if (p.var() == j) {
355355
alpha = p.coeff();
356356
break;
@@ -396,7 +396,7 @@ namespace lp {
396396
unsigned j = m_l_matrix.column_count() - 1;
397397
const auto &last_e_row = m_l_matrix.m_rows.back();
398398
mpq alpha;
399-
for (const auto p: last_e_row) {
399+
for (const auto& p: last_e_row) {
400400
if (p.var() == j) {
401401
return;
402402
}

0 commit comments

Comments
 (0)