From 89d629a0515ba0fb2aeb1a13f9be59cbdadb2fa1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 2 Jul 2012 15:31:37 +1000 Subject: Treat negative values as non-ASCII. --- lexlib/CharacterSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib') 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) { -- cgit v1.2.3