Skip to content

Commit 8904a50

Browse files
committed
fix the build
1 parent 5f5f1d4 commit 8904a50

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎src/math/lp/dioph_eq.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ namespace lp {
219219
void init() {
220220
m_e_matrix = static_matrix<mpq, mpq>(lra.row_count(), lra.column_count());
221221
m_report_branch = false;
222-
unsigned n_of_rows = lra.A_r().row_count();
223222
m_k2s.clear();
224223
m_k2s.resize(lra.column_count(), -1);
225224
m_conflict_index = -1;
@@ -230,7 +229,7 @@ namespace lp {
230229
for (unsigned i = 0; i < lra.terms().size(); i++) {
231230
const lar_term* t = lra.terms()[i];
232231
TRACE("dioph_eq", tout << "term "<< i <<":"; lra.print_term(*t, tout) << "\n";
233-
for(auto & p: *t) {
232+
for(const auto & p: *t) {
234233
lra.print_column_info(p.var(), tout);
235234
}
236235
);

‎src/math/lp/static_matrix.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ template <typename T>
4747
using row_strip = vector<row_cell<T>>;
4848
template <typename K> mpq get_denominators_lcm(const K & row) {
4949
mpq r = mpq(1);
50-
for (auto & c : row)
50+
for (const auto & c : row)
5151
r = lcm(r, denominator(c.coeff()));
5252
return r;
5353
}

0 commit comments

Comments
 (0)