another windows compiler warning

This commit is contained in:
Kovid Goyal 2021-03-18 20:28:45 +05:30
parent a53ea9342e
commit 3735585739
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -302,7 +302,7 @@ class Token {
for (auto ch : text) {
if (is_printable_ascii(ch)) {
if ('A' <= ch && ch <= 'Z') ch += 'a' - 'A';
scratch.push_back(ch);
scratch.push_back((char)ch);
} else return false;
}
return true;