mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
make explicit rational(double)constructor
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
057151c7a8
commit
885d640301
4 changed files with 11 additions and 11 deletions
|
@ -561,7 +561,7 @@ template <typename T, typename X> void lp_solver<T, X>::set_scaled_cost(unsigned
|
|||
column_info<T> * ci = this->m_map_from_var_index_to_column_info[this->m_core_solver_columns_to_external_columns[j]];
|
||||
T cost = ci->get_cost();
|
||||
if (ci->is_flipped()){
|
||||
cost *= -1;
|
||||
cost *= T(-1);
|
||||
}
|
||||
lp_assert(ci->is_fixed() == false);
|
||||
this->m_costs[j] = cost * this->m_column_scale[j];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue