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]]