diff --git a/src/Math/Algorithms/Svd.h b/src/Math/Algorithms/Svd.h index 3d4aef076..1ae6a46aa 100644 --- a/src/Math/Algorithms/Svd.h +++ b/src/Math/Algorithms/Svd.h @@ -49,7 +49,7 @@ template T pythagoras(T a, T b) { } template constexpr T smallestDelta(); -template<> constexpr Float smallestDelta() { return 1.0e-32; } +template<> constexpr Float smallestDelta() { return 1.0e-32f; } #ifndef MAGNUM_TARGET_GLES template<> constexpr Double smallestDelta() { return 1.0e-64; } #endif diff --git a/src/Math/Test/UnitTest.cpp b/src/Math/Test/UnitTest.cpp index 805b0a4b1..d1ce67d48 100644 --- a/src/Math/Test/UnitTest.cpp +++ b/src/Math/Test/UnitTest.cpp @@ -76,7 +76,7 @@ void UnitTest::constructDefault() { } void UnitTest::constructConversion() { - constexpr Seci a(25.0); + constexpr Seci a(25); constexpr Sec b(a); CORRADE_COMPARE(b, Sec(25.0f));