mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-24 19:20:12 +00:00
Silence narrowing warning in basic_specs::set_fill_size
This commit is contained in:
parent
ab453402f7
commit
1accf6c0a0
@ -727,7 +727,8 @@ class basic_specs {
|
||||
char fill_data_[max_fill_size] = {' '};
|
||||
|
||||
FMT_CONSTEXPR void set_fill_size(size_t size) {
|
||||
data_ = (data_ & ~fill_size_mask) | (size << fill_size_shift);
|
||||
data_ &= ~fill_size_mask;
|
||||
data_ |= static_cast<unsigned long>(size << fill_size_shift);
|
||||
}
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user