diff --git a/src/Magnum/Math/Test/FunctionsTest.cpp b/src/Magnum/Math/Test/FunctionsTest.cpp index f751e3a86..95275e652 100644 --- a/src/Magnum/Math/Test/FunctionsTest.cpp +++ b/src/Magnum/Math/Test/FunctionsTest.cpp @@ -414,7 +414,13 @@ void FunctionsTest::renormalizeSinged() { } void FunctionsTest::normalizeTypeDeduction() { - CORRADE_COMPARE(Math::normalize('\x7F'), 1.0f); + if(std::is_signed::value) + CORRADE_COMPARE(Math::normalize('\x7F'), 1.0f); + else { + /* Raspberry Pi `char` is unsigned (huh) */ + CORRADE_VERIFY(std::is_unsigned::value); + CORRADE_COMPARE(Math::normalize('\x7F'), 0.498039f); + } CORRADE_COMPARE((Math::normalize('\x7F')), 1.0f); }