From 8f9a43df028d13c1bc6654aa6dcf66dd542843d2 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 22 Apr 2018 08:35:01 +1000 Subject: Backport: Remove casts between char and unsigned char where possible. Backport of changeset 6731:8e06234817c0. --- lexlib/StyleContext.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lexlib/StyleContext.cxx') 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(*s) != - MakeLowerCase(static_cast(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(tolower(styler[start + i])); + s[i] = MakeLowerCase(styler[start + i]); i++; } s[i] = '\0'; -- cgit v1.2.3