Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add default cases #2186

Merged
merged 1 commit into from
Mar 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2874,6 +2874,8 @@ FMT_CONSTEXPR const Char* parse_align(const Char* begin, const Char* end,
case '^':
align = align::center;
break;
default:
break;
}
if (align != align::none) {
if (p != begin) {
Expand Down Expand Up @@ -2963,6 +2965,8 @@ FMT_CONSTEXPR_DECL FMT_INLINE const Char* parse_format_specs(
handler.on_space();
++begin;
break;
default:
break;
}
if (begin == end) return begin;

Expand Down