Common: Fix incorrect sign extension in sjis2ascii()

This commit is contained in:
Stenzek 2023-09-30 12:20:46 +10:00
parent a45b50c3e9
commit 28c13c0ac4

View file

@ -1340,7 +1340,7 @@ void sjis2ascii(char* bData)
for (i = 0; i < len; i += 2)
{
ch = (bData[i] << 8) | bData[i + 1];
ch = (static_cast<std::uint8_t>(bData[i]) << 8) | static_cast<std::uint8_t>(bData[i + 1]);
// 'A' .. 'Z'
// '0' .. '9'