aboutsummaryrefslogtreecommitdiff
path: root/Eigen/src/OrderingMethods/Eigen_Colamd.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/OrderingMethods/Eigen_Colamd.h')
-rw-r--r--Eigen/src/OrderingMethods/Eigen_Colamd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/OrderingMethods/Eigen_Colamd.h b/Eigen/src/OrderingMethods/Eigen_Colamd.h
index 933cd564b..da85b4d6e 100644
--- a/Eigen/src/OrderingMethods/Eigen_Colamd.h
+++ b/Eigen/src/OrderingMethods/Eigen_Colamd.h
@@ -1004,7 +1004,7 @@ static IndexType find_ordering /* return the number of garbage collections */
COLAMD_ASSERT (head [min_score] >= COLAMD_EMPTY) ;
/* get pivot column from head of minimum degree list */
- while (head [min_score] == COLAMD_EMPTY && min_score < n_col)
+ while (min_score < n_col && head [min_score] == COLAMD_EMPTY)
{
min_score++ ;
}