Skip to content

Commit

Permalink
Add gcc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Nov 18, 2024
1 parent 6a45e85 commit e27b99e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adelie/src/py_sklearn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ py::dict css_cov_model_selection_fit_k(

const auto p = S.cols();

if (k <= 0 || k >= p-1) {
if (static_cast<index_t>(k) <= 0 || static_cast<index_t>(k) >= p-1) {
throw ad::util::adelie_core_solver_error(
"k must be in [1, p-1)."
);
Expand Down Expand Up @@ -76,7 +76,7 @@ py::dict css_cov_model_selection_fit_k(
}

std::atomic_bool early_exit = false;
const auto routine = [&](auto i) {
const auto routine = [&](auto) {
if (early_exit.load(std::memory_order_relaxed)) return;
#if defined(_OPENMP)
const auto thr_idx = omp_get_thread_num();
Expand Down

0 comments on commit e27b99e

Please sign in to comment.