diff options
author | nyamatongwe <unknown> | 2012-07-02 15:31:37 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-07-02 15:31:37 +1000 |
commit | cf923388da5cf64b75617535f7682416196454c6 (patch) | |
tree | 1cef1146491304541c5bf9e6a90399bea898bc79 /lexlib/CharacterSet.h | |
parent | 2e96767001e9d0eb9c586f7bc730569b35a12af7 (diff) | |
download | scintilla-mirror-cf923388da5cf64b75617535f7682416196454c6.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) { |