mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 02:35:46 +01:00
Fix undefined use of cctype functions
This commit is contained in:
@@ -392,9 +392,10 @@ namespace OpenRCT2::Ui
|
||||
{
|
||||
filtersb << ' ';
|
||||
}
|
||||
else if (isalpha(c))
|
||||
else if (isalpha(static_cast<unsigned char>(c)))
|
||||
{
|
||||
filtersb << '[' << static_cast<char>(tolower(c)) << static_cast<char>(toupper(c)) << ']';
|
||||
auto uc = static_cast<unsigned char>(c);
|
||||
filtersb << '[' << static_cast<char>(tolower(uc)) << static_cast<char>(toupper(uc)) << ']';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user