From b1971220624bb07907144c27c25a1e74d2bdd86e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 15 Oct 2007 11:45:16 +0000 Subject: Safety with non-ASCII. --- src/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 3db89e2f6..1738c476d 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -961,7 +961,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty } // find the length of the word int size = 1; - while (setHTMLWord.Contains(styler.SafeGetCharAt(i + size))) + while (setHTMLWord.Contains(static_cast(styler.SafeGetCharAt(i + size)))) size++; styler.ColourTo(i + size - 1, StateToPrint); i += size - 1; -- cgit v1.2.3