We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaef89b commit 1c2c986Copy full SHA for 1c2c986
libcxx/include/regex
@@ -764,7 +764,7 @@ _LIBCPP_CONSTEXPR
764
syntax_option_type
765
operator~(syntax_option_type __x)
766
{
767
- return syntax_option_type(~int(__x));
+ return syntax_option_type(~int(__x) & 0x1FF);
768
}
769
770
inline _LIBCPP_INLINE_VISIBILITY
@@ -840,7 +840,7 @@ _LIBCPP_CONSTEXPR
840
match_flag_type
841
operator~(match_flag_type __x)
842
843
- return match_flag_type(~int(__x));
+ return match_flag_type(~int(__x) & 0x0FFF);
844
845
846
0 commit comments