Browse Source

Use proper numeric literals.

Thanks to MSVC for these.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
e4cf804ec4
  1. 2
      src/Math/Algorithms/Svd.h
  2. 2
      src/Math/Test/UnitTest.cpp

2
src/Math/Algorithms/Svd.h

@ -49,7 +49,7 @@ template<class T> T pythagoras(T a, T b) {
}
template<class T> constexpr T smallestDelta();
template<> constexpr Float smallestDelta<Float>() { return 1.0e-32; }
template<> constexpr Float smallestDelta<Float>() { return 1.0e-32f; }
#ifndef MAGNUM_TARGET_GLES
template<> constexpr Double smallestDelta<Double>() { return 1.0e-64; }
#endif

2
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));

Loading…
Cancel
Save