diff options
author | nyamatongwe <devnull@localhost> | 2012-07-02 15:31:37 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-07-02 15:31:37 +1000 |
commit | 89d629a0515ba0fb2aeb1a13f9be59cbdadb2fa1 (patch) | |
tree | d5686f0cc782927795cf604bdc141944c76cb7ed /lexlib/CharacterSet.h | |
parent | 1958239a53c40ad936d0576984021d851f6c1a3c (diff) | |
download | scintilla-mirror-89d629a0515ba0fb2aeb1a13f9be59cbdadb2fa1.tar.gz |
Treat negative values as non-ASCII.
Diffstat (limited to 'lexlib/CharacterSet.h')
-rw-r--r-- | lexlib/CharacterSet.h | 2 |
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) { |