Skip to content

Commit

Permalink
fix bug where we compare char instead of unsigned char
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilDohne committed Jul 11, 2024
1 parent ec4f0cb commit ad9abbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhotoshopAPI/src/Core/Struct/PascalString.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ inline static std::string ConvertUTF8ToStr(EncodingType encoding, const std::str
std::string res = "";
for (const auto& character : str)
{
if (character < 0x80)
if (static_cast<unsigned char>(character) < 0x80)
{
res += character;
}
Expand Down

0 comments on commit ad9abbc

Please sign in to comment.