Skip to content

Commit 8c23054

Browse files
Andreas Buhrtzlaine
authored andcommitted
Fix bug that ASCII code for z/Z was noch included in case_fold fast-path
1 parent 11a5d9a commit 8c23054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/parser/detail/case_fold.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ namespace boost::parser::detail {
4747
// One-byte fast path.
4848
if (cp < 0x100) {
4949
// ASCII letter fast path.
50-
if (0x61 <= cp && cp < 0x7a) {
50+
if (0x61 <= cp && cp <= 0x7a) {
5151
*out++ = cp;
5252
return out;
53-
} else if (0x41 <= cp && cp < 0x5a) {
53+
} else if (0x41 <= cp && cp <= 0x5a) {
5454
*out++ = cp + 0x20;
5555
return out;
5656
} else if (cp == 0x00DF) {

0 commit comments

Comments
 (0)