Skip to content

Commit

Permalink
Addresses Linux/gcc compile warning treated as error
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-langholtz committed Oct 16, 2023
1 parent a0b3f6e commit 08d51cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/source/playrho/d2/AabbTreeWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Real>(toi));
SetToi(c, {UnitIntervalFF<Real>(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);
Expand Down

0 comments on commit 08d51cd

Please sign in to comment.