mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
Common: Fix incorrect sign extension in sjis2ascii()
This commit is contained in:
parent
a45b50c3e9
commit
28c13c0ac4
|
@ -1340,7 +1340,7 @@ void sjis2ascii(char* bData)
|
||||||
|
|
||||||
for (i = 0; i < len; i += 2)
|
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'
|
// 'A' .. 'Z'
|
||||||
// '0' .. '9'
|
// '0' .. '9'
|
||||||
|
|
Loading…
Reference in a new issue