Skip to content

Commit

Permalink
Fix clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryAWE committed Jun 7, 2024
1 parent 7805b71 commit 54ff9ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/papilio/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3811,6 +3811,10 @@ class int_formatter : public std_formatter_base

case 2:
context_t::append(ctx, uppercase ? 'B' : 'b');
break;

default:
break;
}
}

Expand Down Expand Up @@ -3982,6 +3986,9 @@ class float_formatter : public std_formatter_base
case format_sign::space:
context_t::append(ctx, static_cast<CharT>(neg ? '-' : ' '));
break;

default:
PAPILIO_UNREACHABLE();
}

context_t::append(ctx, buf, buf + fp_size);
Expand All @@ -4004,6 +4011,7 @@ class float_formatter : public std_formatter_base
case U'G':
uppercase = true;
[[fallthrough]];
default:
case U'\0':
case U'g':
ch_fmt = std::chars_format::general;
Expand Down

0 comments on commit 54ff9ce

Please sign in to comment.