Skip to content

Commit

Permalink
constraint_solver: Fix macos clang build (Fix #3953)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 13, 2023
1 parent d94a6a8 commit 9154cf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ortools/constraint_solver/routing_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ CheapestInsertionFilteredHeuristic::ComputeStartEndDistanceForVehicles(
std::vector<StartEndValue>& start_end_distances =
start_end_distances_per_node[node];
start_end_distances.reserve(
std::min(model.VehicleVar(node)->Size(), vehicles.size()));
std::min(model.VehicleVar(node)->Size(),
static_cast<uint64_t>(vehicles.size())));

ProcessVehicleStartEndCosts(
model, node,
Expand Down

0 comments on commit 9154cf3

Please sign in to comment.