File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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                }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments