Skip to content

Commit

Permalink
Fix underflow
Browse files Browse the repository at this point in the history
  • Loading branch information
T3C42 committed Dec 3, 2024
1 parent 0bb98a5 commit 345678d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt-kahypar/dynamic/dynamic_partitioner.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace mt_kahypar::dyn {
ds::StaticHypergraph& hypergraph_s = utils::cast<ds::StaticHypergraph>(hypergraph);

// If the number of changes is not specified or is greater than the number of changes in the file, we process all the changes
size_t changes_size = context.dynamic.max_changes == -1 ? changes.size() : std::min((size_t) context.dynamic.max_changes, changes.size());
size_t changes_size = context.dynamic.max_changes == 0 ? changes.size() : std::min((size_t) context.dynamic.max_changes, changes.size());

DynamicStrategy* strategy;

Expand Down

0 comments on commit 345678d

Please sign in to comment.