Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hader committed Oct 9, 2024
1 parent 31839cb commit db09ece
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/polynomial/feasibility_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ int lp_feasibility_set_is_point_int(const lp_feasibility_set_t* set) {
for (size_t i = 0; i < set->size; ++i) {
long tmp = lp_interval_count_int(set->intervals + i);
assert(tmp >= 0);
// checking tmp and the sum independently to avoid overflows
if (tmp > 1 || tmp + cnt > 1) {
return 0;
}
Expand Down

0 comments on commit db09ece

Please sign in to comment.