diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-22 08:35:01 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-22 08:35:01 +1000 |
commit | f7cab317b777bb8fedb4bd8f4eeb7e68bf712989 (patch) | |
tree | a80432017efd0e8b427bb7b2e3cd6eedf48de57d /lexlib/StyleContext.cxx | |
parent | dc7c28cfcf21c18f96a49f2cc0818d4f676bd301 (diff) | |
download | scintilla-mirror-f7cab317b777bb8fedb4bd8f4eeb7e68bf712989.tar.gz |
Remove casts between char and unsigned char where possible.
Diffstat (limited to 'lexlib/StyleContext.cxx')
-rw-r--r-- | lexlib/StyleContext.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexlib/StyleContext.cxx b/lexlib/StyleContext.cxx index ba73fbf8f..683e21453 100644 --- a/lexlib/StyleContext.cxx +++ b/lexlib/StyleContext.cxx @@ -26,8 +26,8 @@ bool StyleContext::MatchIgnoreCase(const char *s) { return false; s++; for (int n = 2; *s; n++) { - if (static_cast<unsigned char>(*s) != - MakeLowerCase(static_cast<unsigned char>(styler.SafeGetCharAt(currentPos + n, 0)))) + if (*s != + MakeLowerCase(styler.SafeGetCharAt(currentPos + n, 0))) return false; s++; } @@ -58,7 +58,7 @@ static void getRangeLowered(Sci_PositionU start, Sci_PositionU len) { Sci_PositionU i = 0; while ((i < end - start + 1) && (i < len-1)) { - s[i] = static_cast<char>(tolower(styler[start + i])); + s[i] = MakeLowerCase(styler[start + i]); i++; } s[i] = '\0'; |