Commit a24005d5 authored by Victor Zverovich's avatar Victor Zverovich

Fix a narrowing warning

parent 3651b7fc
...@@ -2295,7 +2295,7 @@ class basic_writer { ...@@ -2295,7 +2295,7 @@ class basic_writer {
void write_int(unsigned num_digits, string_view prefix, void write_int(unsigned num_digits, string_view prefix,
const Spec &spec, F f) { const Spec &spec, F f) {
std::size_t size = prefix.size() + num_digits; std::size_t size = prefix.size() + num_digits;
char_type fill = spec.fill(); char_type fill = static_cast<char_type>(spec.fill());
std::size_t padding = 0; std::size_t padding = 0;
if (spec.align() == ALIGN_NUMERIC) { if (spec.align() == ALIGN_NUMERIC) {
if (spec.width() > size) { if (spec.width() > size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment