From 52503a6ed8ed86bdb59e5a352684ab2ee125110e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 12 Jul 2010 00:55:03 +0000 Subject: =?UTF-8?q?Fix=20regular=20expression=20searches=20for=20ranges=20?= =?UTF-8?q?above=200x80=20like=20[A-=C2=80].?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RESearch.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/RESearch.cxx b/src/RESearch.cxx index a5dbf3678..3baa37c91 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -522,7 +522,7 @@ const char *RESearch::Compile(const char *pattern, int length, bool caseSensitiv if (*(p+1) != ']') { c1 = prevChar + 1; i++; - c2 = *++p; + c2 = static_cast(*++p); if (c2 == '\\') { if (!*(p+1)) // End of RE return badpat("Missing ]"); @@ -577,7 +577,7 @@ const char *RESearch::Compile(const char *pattern, int length, bool caseSensitiv prevChar = -1; } } else { - prevChar = *p; + prevChar = static_cast(*p); ChSetWithCase(*p, caseSensitive); } i++; -- cgit v1.2.3