aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-10-04 15:54:08 +1000
committernyamatongwe <devnull@localhost>2012-10-04 15:54:08 +1000
commit823b818b12f03208e9ea3731c37089274397288c (patch)
treecedb9b65ef8bf69dfa3deb4d30555312415ca8cd /src
parent797f01e02680c7409ed1068b7b148a5b6d1a14ed (diff)
downloadscintilla-mirror-823b818b12f03208e9ea3731c37089274397288c.tar.gz
Fix bug where non-ASCII hex escape did not match.
Diffstat (limited to 'src')
-rw-r--r--src/RESearch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx
index ffcc58d36..87f2a6985 100644
--- a/src/RESearch.cxx
+++ b/src/RESearch.cxx
@@ -788,7 +788,7 @@ int RESearch::Execute(CharacterIndexer &ci, int lp, int endp) {
}
case CHR: /* ordinary char: locate it fast */
c = *(ap+1);
- while ((lp < endp) && (ci.CharAt(lp) != c))
+ while ((lp < endp) && (static_cast<unsigned char>(ci.CharAt(lp)) != c))
lp++;
if (lp >= endp) /* if EOS, fail, else fall thru. */
return 0;