From e02104df227256a4cdf9023314bd465ef64abf16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 1 Jun 2023 17:24:22 +0200 Subject: [PATCH] Math: print a note in the test if char is unsigned. To make it easier to discover such platforms. --- src/Magnum/Math/Test/PackingTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Magnum/Math/Test/PackingTest.cpp b/src/Magnum/Math/Test/PackingTest.cpp index a59178ec4..a6b0d5ccc 100644 --- a/src/Magnum/Math/Test/PackingTest.cpp +++ b/src/Magnum/Math/Test/PackingTest.cpp @@ -290,6 +290,7 @@ void PackingTest::unpackTypeDeduction() { if(std::is_signed::value) CORRADE_COMPARE(Math::unpack('\x7F'), 1.0f); else { + CORRADE_INFO("char is unsigned"); /* Raspberry Pi `char` is unsigned (huh) */ CORRADE_VERIFY(std::is_unsigned::value); CORRADE_COMPARE(Math::unpack('\x7F'), 0.498039f);