- remove call to to_unsigned() because using static_cast<size_t> is enough

This commit is contained in:
Tobi823 2022-01-19 10:08:53 +01:00
parent 3f1f263217
commit 64a3bfcac8

View File

@ -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);