disable assert on windows; fix test

This commit is contained in:
Laurent Perron
2022-10-11 16:23:29 +02:00
parent cbe7bed968
commit c0e5ca1cd1
2 changed files with 3 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ static const char kUsageStr[] =
int main(int argc, char** argv) {
InitGoogle(kUsageStr, &argc, &argv, /*remove_flags=*/true);
if (!absl::GetFlag(FLAGS_input).empty())) {
if (absl::GetFlag(FLAGS_input).empty()) {
LOG(INFO) << "--input is required";
return EXIT_SUCCESS;
}

View File

@@ -195,8 +195,10 @@ class LinearPropagator : public PropagatorInterface, ReversibleInterface {
int rev_size; // The size of the non-fixed terms.
IntegerValue rev_rhs; // The current rhs, updated on fixed terms.
};
#if !defined(_MSC_VER)
static_assert(sizeof(ConstraintInfo) == 24,
"ERROR_ConstraintInfo_is_not_well_compacted");
#endif
absl::Span<IntegerValue> GetCoeffs(const ConstraintInfo& info);
absl::Span<IntegerVariable> GetVariables(const ConstraintInfo& info);