Commit 3242ddf7 authored by Victor Zverovich's avatar Victor Zverovich

Fix warnings

parent bd110404
...@@ -159,7 +159,7 @@ struct chrono_formatter { ...@@ -159,7 +159,7 @@ struct chrono_formatter {
void write(int value, int width) { void write(int value, int width) {
typedef typename int_traits<int>::main_type main_type; typedef typename int_traits<int>::main_type main_type;
main_type n = value; main_type n = value;
auto num_digits = internal::count_digits(n); int num_digits = internal::count_digits(n);
if (width > num_digits) if (width > num_digits)
out = std::fill_n(out, width - num_digits, '0'); out = std::fill_n(out, width - num_digits, '0');
out = format_decimal<char_type>(out, n, num_digits); out = format_decimal<char_type>(out, n, num_digits);
...@@ -215,7 +215,7 @@ struct chrono_formatter { ...@@ -215,7 +215,7 @@ struct chrono_formatter {
write(to_int(s.count() % 60), 2); write(to_int(s.count() % 60), 2);
if (ms != std::chrono::milliseconds()) { if (ms != std::chrono::milliseconds()) {
*out++ = '.'; *out++ = '.';
write(ms.count(), 3); write(to_int(ms.count()), 3);
} }
} }
}; };
......
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