We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31839cb commit db09eceCopy full SHA for db09ece
src/polynomial/feasibility_set.c
@@ -149,6 +149,7 @@ int lp_feasibility_set_is_point_int(const lp_feasibility_set_t* set) {
149
for (size_t i = 0; i < set->size; ++i) {
150
long tmp = lp_interval_count_int(set->intervals + i);
151
assert(tmp >= 0);
152
+ // checking tmp and the sum independently to avoid overflows
153
if (tmp > 1 || tmp + cnt > 1) {
154
return 0;
155
}
0 commit comments