Fix yet another wraparound issue

This commit is contained in:
Lars Mueller 2024-05-19 23:42:08 +02:00
parent 50d5ab3241
commit 2bcb715386

@ -218,7 +218,7 @@ class SortedPoints {
//! Merge two sets of sorted points //! Merge two sets of sorted points
SortedPoints(const SortedPoints &a, const SortedPoints &b) SortedPoints(const SortedPoints &a, const SortedPoints &b)
: points(a.size() + b.size()) : points(static_cast<std::size_t>(a.size()) + b.size())
{ {
const auto n = points.size(); const auto n = points.size();
indices = SortedIndices<Dim>::newUninitialized(n); indices = SortedIndices<Dim>::newUninitialized(n);