mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Fixed compilation on Linxu
This commit is contained in:
parent
9a3db200a5
commit
d00fc9a0a8
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ void MotionPlannerGraph::add_edge(size_t from, size_t to, double weight)
|
||||||
// Extend adjacency list until this start node.
|
// Extend adjacency list until this start node.
|
||||||
if (m_adjacency_list.size() < from + 1) {
|
if (m_adjacency_list.size() < from + 1) {
|
||||||
// Reserve in powers of two to avoid repeated reallocation.
|
// Reserve in powers of two to avoid repeated reallocation.
|
||||||
m_adjacency_list.reserve(std::max<size_t>(8, next_highest_power_of_2(from + 1)));
|
m_adjacency_list.reserve(std::max<uint32_t>(8, next_highest_power_of_2((uint32_t)(from + 1))));
|
||||||
// Allocate new empty adjacency vectors.
|
// Allocate new empty adjacency vectors.
|
||||||
m_adjacency_list.resize(from + 1);
|
m_adjacency_list.resize(from + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue