We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5840e8 commit 1269b97Copy full SHA for 1269b97
lib/Parse/Lexer.cpp
@@ -102,7 +102,7 @@ static unsigned CLO8(unsigned char C) {
102
static bool isStartOfUTF8Character(unsigned char C) {
103
// RFC 2279: The octet values FE and FF never appear.
104
// RFC 3629: The octet values C0, C1, F5 to FF never appear.
105
- return C <= 0x80 || (C >= 0xC2 && C < 0xF5);
+ return C < 0x80 || (C >= 0xC2 && C < 0xF5);
106
}
107
108
/// validateUTF8CharacterAndAdvance - Given a pointer to the starting byte of a
0 commit comments