From 64a3bfcac8e0f7fe9b79765a7e4484ae9196f83c Mon Sep 17 00:00:00 2001 From: Tobi823 Date: Wed, 19 Jan 2022 10:08:53 +0100 Subject: [PATCH] - remove call to to_unsigned() because using static_cast is enough --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 359d1362..7828656b 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1214,7 +1214,7 @@ template class tm_writer { char buf[10]; size_t offset = 0; if (year >= 0 && year < 10000) { - copy2(buf, digits2(static_cast(to_unsigned(year / 100)))); + copy2(buf, digits2(static_cast(year / 100))); } else { offset = 4; write_year_extended(year);