Skip to content

Commit

Permalink
Fix Mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed Jul 1, 2024
1 parent 22c6e69 commit 3a1cd38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/chain_items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ TracedScore chain_items_dp(vector<TracedScore>& chain_scores,
chain_scores.resize(to_chain.size());
for (size_t i = 0; i < to_chain.size(); i++) {
// Set up DP table so we can start anywhere with that item's score, scaled and with bonus applied.
chain_scores[i] = {to_chain[i].score() * item_scale + item_bonus, TracedScore::nowhere()};
chain_scores[i] = {(int)(to_chain[i].score() * item_scale + item_bonus), TracedScore::nowhere()};
}

// We will run this over every transition in a good DP order.
Expand All @@ -451,7 +451,7 @@ TracedScore chain_items_dp(vector<TracedScore>& chain_scores,
}

// If we come from nowhere, we get those points.
chain_scores[to_anchor] = std::max(chain_scores[to_anchor], {item_points, TracedScore::nowhere()});
chain_scores[to_anchor] = std::max(chain_scores[to_anchor], {(int)item_points, TracedScore::nowhere()});

// For each source we could come from
auto& source = to_chain[from_anchor];
Expand Down

1 comment on commit 3a1cd38

@adamnovak
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch lr-giraffe. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 17364 seconds

Please sign in to comment.