fix unsigned warning
This commit is contained in:
parent
9b855d406d
commit
a9c9c0c551
@ -2167,8 +2167,8 @@ auto write_int(OutputIt out, UInt value, unsigned prefix,
|
|||||||
throw_format_error("invalid format specifier");
|
throw_format_error("invalid format specifier");
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned size = to_unsigned((prefix != 0 ? prefix >> 24 : 0) + num_digits +
|
unsigned size = (prefix != 0 ? prefix >> 24 : 0) + to_unsigned(num_digits) +
|
||||||
grouping.count_separators(num_digits));
|
to_unsigned(grouping.count_separators(num_digits));
|
||||||
return write_padded<align::right>(
|
return write_padded<align::right>(
|
||||||
out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
|
out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
|
||||||
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
|
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user