diff --git a/ortools/algorithms/set_cover_solve.cc b/ortools/algorithms/set_cover_solve.cc index ab1cda7b7b..95b139a116 100644 --- a/ortools/algorithms/set_cover_solve.cc +++ b/ortools/algorithms/set_cover_solve.cc @@ -142,8 +142,7 @@ FileFormat ParseFileFormat(const std::string& format_name) { } } -SetCoverModel ReadModel(const std::string& input_file, - FileFormat input_format) { +SetCoverModel ReadModel(absl::string_view input_file, FileFormat input_format) { switch (input_format) { case FileFormat::ORLIB_SCP: return ReadOrlibScp(input_file); diff --git a/ortools/util/fixed_shape_binary_tree.h b/ortools/util/fixed_shape_binary_tree.h index 17008245c5..86a5587e5a 100644 --- a/ortools/util/fixed_shape_binary_tree.h +++ b/ortools/util/fixed_shape_binary_tree.h @@ -218,7 +218,6 @@ class FixedShapeBinaryTree { template void PartitionIntervalIntoNodes(LeafIndex first_leaf, LeafIndex last_leaf, TypeWithPushBack* result) const { - DCHECK_LE(first_leaf, last_leaf); TreeNodeIndex prev(0); TreeNodeIndex current = GetNodeStartOfRange(first_leaf, last_leaf); if (current == Root()) {