From e4cf804ec46aa3cddd0bd64e362ffcceb6f60c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Dec 2013 17:34:50 +0100 Subject: [PATCH] Use proper numeric literals. Thanks to MSVC for these. --- src/Math/Algorithms/Svd.h | 2 +- src/Math/Test/UnitTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));