Browse Source

Math: print a note in the test if char is unsigned.

To make it easier to discover such platforms.
pull/620/head
Vladimír Vondruš 3 years ago
parent
commit
e02104df22
  1. 1
      src/Magnum/Math/Test/PackingTest.cpp

1
src/Magnum/Math/Test/PackingTest.cpp

@ -290,6 +290,7 @@ void PackingTest::unpackTypeDeduction() {
if(std::is_signed<char>::value)
CORRADE_COMPARE(Math::unpack<Float>('\x7F'), 1.0f);
else {
CORRADE_INFO("char is unsigned");
/* Raspberry Pi `char` is unsigned (huh) */
CORRADE_VERIFY(std::is_unsigned<char>::value);
CORRADE_COMPARE(Math::unpack<Float>('\x7F'), 0.498039f);

Loading…
Cancel
Save