Commit 9cbf4b08 authored by Florin Iucha's avatar Florin Iucha Committed by Victor Zverovich

Fix -Wconversion warnings

parent 1200a34e
......@@ -1242,7 +1242,7 @@ template <typename Context> class basic_format_args {
internal::type type(int index) const {
int shift = index * internal::packed_arg_bits;
int mask = (1 << internal::packed_arg_bits) - 1;
unsigned int mask = (1 << internal::packed_arg_bits) - 1;
return static_cast<internal::type>((types_ >> shift) & mask);
}
......
......@@ -1572,7 +1572,7 @@ template <typename Range> class basic_writer {
basic_string_view<char_type> s(&sep, sep_size);
// Index of a decimal digit with the least significant digit having
// index 0.
unsigned digit_index = 0;
int digit_index = 0;
std::string::const_iterator group = groups.cbegin();
it = format_decimal<char_type>(
it, abs_value, 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