Skip to content

Commit

Permalink
Reduce size of basic_specs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 12, 2025
1 parent c43da35 commit b43eefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ class basic_specs {
max_fill_size = 4
};

size_t data_ = 1 << fill_size_shift;
unsigned data_ = 1 << fill_size_shift;
static_assert(sizeof(data_) * CHAR_BIT >= 18, "");

// Character (code unit) type is erased to prevent template bloat.
char fill_data_[max_fill_size] = {' '};
Expand Down

0 comments on commit b43eefa

Please sign in to comment.