1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

UniqueID: Mingw std::byte cast

This commit is contained in:
Oliver James 2023-04-28 10:05:57 +01:00
parent 120f9266dc
commit 0139452607

View file

@ -796,7 +796,7 @@ String SystemStats::getUniqueDeviceID()
const auto* src = content.data() + systemUUID;
for (auto i = 0; i != 16; ++i)
snprintf (hexBuf + 2 * i, 3, "%02hhX", src[i]);
snprintf (hexBuf + 2 * i, 3, "%02hhX", std::to_integer<uint8_t> (src[i]));
uuid += hexBuf;
uuid += "\n";