- remove call to to_unsigned() because using static_cast<size_t> is enough
This commit is contained in:
parent
3f1f263217
commit
64a3bfcac8
@ -1214,7 +1214,7 @@ template <typename OutputIt, typename Char> class tm_writer {
|
||||
char buf[10];
|
||||
size_t offset = 0;
|
||||
if (year >= 0 && year < 10000) {
|
||||
copy2(buf, digits2(static_cast<size_t>(to_unsigned(year / 100))));
|
||||
copy2(buf, digits2(static_cast<size_t>(year / 100)));
|
||||
} else {
|
||||
offset = 4;
|
||||
write_year_extended(year);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user