mirror of
https://github.com/minetest/minetest.git
synced 2024-07-04 15:05:27 +02:00
Fix yet another wraparound issue
This commit is contained in:
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user