Fix: Compiler error on windows and mac
The previous fix including `<algorithm>` was an improvement but not the actual error, which appears to be that `int64_t` is long long int on one platform but just long int on another. The fix includes the template argument directly.
This commit is contained in:
parent
7a4af7a01b
commit
22de21bef1
|
@ -103,7 +103,7 @@ void calculate_evaluated_positions(const Span<float3> positions,
|
|||
evaluated_positions.take_front(evaluated_offsets.first()));
|
||||
|
||||
/* Give each task fewer segments as the resolution gets larger. */
|
||||
const int grain_size = std::max(evaluated_positions.size() / positions.size() * 32, 1L);
|
||||
const int grain_size = std::max<int>(evaluated_positions.size() / positions.size() * 32, 1);
|
||||
threading::parallel_for(
|
||||
positions.index_range().drop_back(1).drop_front(1), grain_size, [&](IndexRange range) {
|
||||
for (const int i : range) {
|
||||
|
|
Loading…
Reference in New Issue