update examples

This commit is contained in:
Laurent Perron
2019-08-06 15:57:08 -07:00
parent 6c8cedcf22
commit 24e21cb7cf
2 changed files with 8 additions and 6 deletions

View File

@@ -277,8 +277,8 @@ int Run() {
}
}
auto strtoint64 = [](const std::string& word) {
int64 value;
CHECK(absl::SimpleAtoi(word, &value));
int64 value = 0;
if (!word.empty()) CHECK(absl::SimpleAtoi(word, &value));
return value;
};
if (!AddObjectiveConstraint(problem, !FLAGS_lower_bound.empty(),