Skip to content

Commit

Permalink
fix(shm): add static_cast<> to silence warning due to comparison sign…
Browse files Browse the repository at this point in the history
…ed to unsigned
  • Loading branch information
DanielSeemaier committed Feb 15, 2025
1 parent 51ef0b4 commit c673ed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kaminpar-shm/coarsening/overlay_cluster_coarsener.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ bool OverlayClusteringCoarsener::coarsen() {
_clustering_algorithm->set_desired_cluster_count(desired_cluster_count);
}

const bool compute_overlays = level() <= _c_ctx.overlay_clustering.max_level;
const bool compute_overlays =
level() <= static_cast<std::size_t>(_c_ctx.overlay_clustering.max_level);

if (compute_overlays) {
for (auto &clustering : clusterings) {
Expand Down

0 comments on commit c673ed6

Please sign in to comment.