diff options
author | Neil <nyamatongwe@gmail.com> | 2021-07-13 16:13:14 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-07-13 16:13:14 +1000 |
commit | 92e04b39ccd38939d59b17fbf9d7764cba068412 (patch) | |
tree | c9ca0319d7bbb0de39bd2a91ac9f57d14dffa7b6 /src/Document.cxx | |
parent | 667fb0b9f8485613f3d18f15dec3466d615c6097 (diff) | |
download | scintilla-mirror-92e04b39ccd38939d59b17fbf9d7764cba068412.tar.gz |
Restrict UTF8IsAscii to char and unsigned char to avoid failures when (signed)
char passed.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 4fdfe4e34..9b2e3848c 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1707,7 +1707,7 @@ Sci::Position Document::ParaDown(Sci::Position pos) const { } CharacterClass Document::WordCharacterClass(unsigned int ch) const { - if (dbcsCodePage && (!UTF8IsAscii(ch))) { + if (dbcsCodePage && (ch >= 0x80)) { if (CpUtf8 == dbcsCodePage) { // Use hard coded Unicode class const CharacterCategory cc = charMap.CategoryFor(ch); |