We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee2df8 commit de97d82Copy full SHA for de97d82
1 file changed
src/Strings.cpp
@@ -13,7 +13,12 @@ std::string CodeToString(UInt32 value)
13
14
std::stringstream ss;
15
16
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
17
ss << "'" << bytes[0] << bytes[1] << bytes[2] << bytes[3] << "'";
18
+#else
19
+ ss << "'" << bytes[3] << bytes[2] << bytes[1] << bytes[0] << "'";
20
+#endif
21
+
22
ss << " (0x" << std::hex << value << ")";
23
24
return ss.str();
0 commit comments