From 7f88bf8b2152a5f511b763ed03ecf6baf6fef08f Mon Sep 17 00:00:00 2001 From: va_alpatov Date: Sat, 16 May 2026 05:35:41 +0300 Subject: [PATCH] hotfix --- include/omath/collision/epa_algorithm.hpp | 2 +- include/omath/linear_algebra/mat.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index 660a2b1..15dc9fe 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -49,7 +49,7 @@ namespace omath::collision struct Params final { int max_iterations{64}; - FloatingType tolerance{1e-4}; // absolute tolerance on distance growth + FloatingType tolerance{1e-4f}; // absolute tolerance on distance growth }; // Precondition: simplex.size()==4 and contains the origin. [[nodiscard]] diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index 21c7053..060492f 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -271,7 +271,8 @@ namespace omath } return det; } - std::unreachable(); + else // For no reason MSVC triggers on it as unreachable code so we keep else here. + std::unreachable(); } [[nodiscard]]