From 1bb059932a5ec27a0a85fb23ab527abb08db5bc6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 9 Aug 2006 11:32:50 +0000 Subject: Fix for bug 1530313. --- src/StyleContext.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/StyleContext.h b/src/StyleContext.h index 36b50f914..75e187859 100644 --- a/src/StyleContext.h +++ b/src/StyleContext.h @@ -107,16 +107,16 @@ public: return static_cast(styler.SafeGetCharAt(currentPos+n)); } bool Match(char ch0) { - return ch == ch0; + return ch == static_cast(ch0); } bool Match(char ch0, char ch1) { - return (ch == ch0) && (chNext == ch1); + return (ch == static_cast(ch0)) && (chNext == static_cast(ch1)); } bool Match(const char *s) { - if (ch != *s) + if (ch != static_cast(*s)) return false; s++; - if (chNext != *s) + if (chNext != static_cast(*s)) return false; s++; for (int n=2; *s; n++) { @@ -127,14 +127,14 @@ public: return true; } bool MatchIgnoreCase(const char *s) { - if (tolower(ch) != *s) + if (tolower(ch) != static_cast(*s)) return false; s++; - if (tolower(chNext) != *s) + if (tolower(chNext) != static_cast(*s)) return false; s++; for (int n=2; *s; n++) { - if (*s != + if (static_cast(*s) != tolower(static_cast(styler.SafeGetCharAt(currentPos+n)))) return false; s++; -- cgit v1.2.3