diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/LexHTML.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 5622f476f..6042f168f 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -1623,7 +1623,7 @@ static void ColouriseHTMLPiece(StyleContext &sc, WordList *keywordlists[]) {  			sc.SetState(SCE_H_DEFAULT);  		}  	} else if (sc.state == SCE_H_TAGUNKNOWN) { -		if (!ishtmlwordchar(sc.ch) && !((sc.ch == '/') && (sc.chPrev == '<')) && sc.ch != '[') { +		if (!ishtmlwordchar(static_cast<char>(sc.ch)) && !((sc.ch == '/') && (sc.chPrev == '<')) && sc.ch != '[') {  			char s[100];  			sc.GetCurrentLowered(s, sizeof(s));  			if (s[1] == '/') { @@ -1646,7 +1646,7 @@ static void ColouriseHTMLPiece(StyleContext &sc, WordList *keywordlists[]) {  			}  		}  	} else if (sc.state == SCE_H_ATTRIBUTE) { -		if (!ishtmlwordchar(sc.ch)) { +		if (!ishtmlwordchar(static_cast<char>(sc.ch))) {  			char s[100];  			sc.GetCurrentLowered(s, sizeof(s));  			if (!keywordsTags.InList(s)) { @@ -1698,7 +1698,7 @@ static void ColouriseHTMLPiece(StyleContext &sc, WordList *keywordlists[]) {  		} else if (sc.ch == '>') {  			sc.SetState(SCE_H_TAG);  			sc.ForwardSetState(SCE_H_DEFAULT); -		} else if (ishtmlwordchar(sc.ch)) { +		} else if (ishtmlwordchar(static_cast<char>(sc.ch))) {  			sc.SetState(SCE_H_ATTRIBUTE);  		}  	} | 
