From 2bcb715386485c1746b32d55e29e96a8df235fef Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sun, 19 May 2024 23:42:08 +0200 Subject: [PATCH] Fix yet another wraparound issue --- src/util/k_d_tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/k_d_tree.h b/src/util/k_d_tree.h index cdb07c20c..e04f249a6 100644 --- a/src/util/k_d_tree.h +++ b/src/util/k_d_tree.h @@ -218,7 +218,7 @@ class SortedPoints { //! Merge two sets of sorted points SortedPoints(const SortedPoints &a, const SortedPoints &b) - : points(a.size() + b.size()) + : points(static_cast(a.size()) + b.size()) { const auto n = points.size(); indices = SortedIndices::newUninitialized(n);