Skip to content

Commit

Permalink
Math: print a note in the test if char is unsigned.
Browse files Browse the repository at this point in the history
To make it easier to discover such platforms.
  • Loading branch information
mosra committed Jun 1, 2023
1 parent 3113306 commit e02104d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Magnum/Math/Test/PackingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e02104d

Please sign in to comment.