From 2d0c37b3a9c4b0f80f31164e92e9a237b508b045 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 15 Oct 2007 11:58:36 +0000 Subject: More non-ASCII safety. --- src/LexHTML.cxx | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 1738c476d..9b8d5dc92 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -565,7 +565,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty break; } if (style == SCE_HJ_SYMBOLS) { - chPrevNonWhite = styler.SafeGetCharAt(back); + chPrevNonWhite = static_cast(styler.SafeGetCharAt(back)); } } @@ -691,9 +691,8 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty // check if the closing tag is a script tag if (state == SCE_HJ_COMMENTLINE || isXml) { char tag[7]; // room for the