aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-07-02 15:31:37 +1000
committernyamatongwe <devnull@localhost>2012-07-02 15:31:37 +1000
commit89d629a0515ba0fb2aeb1a13f9be59cbdadb2fa1 (patch)
treed5686f0cc782927795cf604bdc141944c76cb7ed
parent1958239a53c40ad936d0576984021d851f6c1a3c (diff)
downloadscintilla-mirror-89d629a0515ba0fb2aeb1a13f9be59cbdadb2fa1.tar.gz
Treat negative values as non-ASCII.
-rw-r--r--lexlib/CharacterSet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/CharacterSet.h b/lexlib/CharacterSet.h
index ba42ea3d6..6de6b46c2 100644
--- a/lexlib/CharacterSet.h
+++ b/lexlib/CharacterSet.h
@@ -90,7 +90,7 @@ inline bool IsADigit(int ch, int base) {
}
inline bool IsASCII(int ch) {
- return ch < 0x80;
+ return (ch >= 0) && (ch < 0x80);
}
inline bool IsAlphaNumeric(int ch) {