diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ef843b1..e497421 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,4 @@ -# v1.1.1 +# v1.1.2 - Added [[fallthrough]], [[nodiscard]] and [[unlikely]] attributes to ensure code correctness and to provide compiler hints for optimazation. - Removed the match_mode argument for the gmatch_iterator contructor. diff --git a/src/lex.h b/src/lex.h index 7e1efe6..f2e17ec 100644 --- a/src/lex.h +++ b/src/lex.h @@ -455,7 +455,7 @@ bool matchbracketclass( StrCharT c, const PatCharT * p, const PatCharT * ep ) no if( *p == '%' ) { p++; - if( match_class( c, *p ) ) + if( match_class( uc, *p ) ) { return ret; } @@ -494,7 +494,7 @@ bool singlematch( const match_state< StrCharT, PatCharT > & ms, const StrCharT * return true; // Matches any char case '%': - return match_class( c, *( p + 1 ) ); + return match_class( static_cast< uchar_t >( c ), *( p + 1 ) ); case '[': return matchbracketclass( c, p, ep - 1 );