From 08d51cd2186cde8bb5f7f4a3df1592447ef85ba8 Mon Sep 17 00:00:00 2001 From: Louis Langholtz Date: Sun, 15 Oct 2023 15:54:54 -0600 Subject: [PATCH] Addresses Linux/gcc compile warning treated as error --- Library/source/playrho/d2/AabbTreeWorld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/source/playrho/d2/AabbTreeWorld.cpp b/Library/source/playrho/d2/AabbTreeWorld.cpp index 3226e13a8d..507f181a39 100644 --- a/Library/source/playrho/d2/AabbTreeWorld.cpp +++ b/Library/source/playrho/d2/AabbTreeWorld.cpp @@ -1678,7 +1678,7 @@ AabbTreeWorld::UpdateContactTOIs(const StepConf& conf) // could provide a TOI that's greater than 1. const auto toi = IsValidForTime(output.state)? std::min(alpha0 + (Real(1) - alpha0) * output.time, Real(1)): Real(1); - SetToi(c, UnitIntervalFF(toi)); + SetToi(c, {UnitIntervalFF(toi)}); results.maxDistIters = std::max(results.maxDistIters, output.stats.max_dist_iters); results.maxToiIters = std::max(results.maxToiIters, output.stats.toi_iters); results.maxRootIters = std::max(results.maxRootIters, output.stats.max_root_iters);