Skip to content

Commit 7bba8bc

Browse files
committed
fix some warnings
1 parent abac52e commit 7bba8bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/math/lp/dioph_eq.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1652,8 +1652,8 @@ namespace lp {
16521652
const auto& row = m_e_matrix.m_rows[ei];
16531653
auto it = std::find_if (row.begin(), row.end(), [j](const auto& p) {return p.var() == j;} );
16541654
if (it == row.end()) return false;
1655-
return it->coeff() == mpq(1)&& j_sign == 1 ||
1656-
it->coeff() == mpq(-1) && j_sign == -1;
1655+
return (it->coeff() == mpq(1) && j_sign == 1) ||
1656+
(it->coeff() == mpq(-1) && j_sign == -1);
16571657
}
16581658
// j is the variable to eliminate, it appears in row ei of m_e_matrix with
16591659
// a coefficient equal to j_sign which is +-1

src/math/lp/int_solver.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ namespace lp {
3434
int_solver& lia;
3535
lar_solver& lra;
3636
lar_core_solver& lrac;
37-
dioph_eq m_dio;
3837
unsigned m_number_of_calls = 0;
3938
lar_term m_t; // the term to return in the cut
4039
bool m_upper; // cut is an upper bound
@@ -43,13 +42,14 @@ namespace lp {
4342
hnf_cutter m_hnf_cutter;
4443
unsigned m_hnf_cut_period;
4544
unsigned m_dioph_eq_period;
45+
dioph_eq m_dio;
4646
int_gcd_test m_gcd;
4747

4848
bool column_is_int_inf(unsigned j) const {
4949
return lra.column_is_int(j) && (!lia.value_is_int(j));
5050
}
5151

52-
imp(int_solver& lia): lia(lia), lra(lia.lra), lrac(lia.lrac), m_hnf_cutter(lia), m_gcd(lia), m_dio(lia) {
52+
imp(int_solver& lia): lia(lia), lra(lia.lra), lrac(lia.lrac), m_hnf_cutter(lia), m_dio(lia), m_gcd(lia) {
5353
m_hnf_cut_period = settings().hnf_cut_period();
5454
m_dioph_eq_period = settings().m_dioph_eq_period;
5555
}

0 commit comments

Comments
 (0)