From 92a44db11c126ebe21a6a4716204b94c8fcf4b26 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 12 Jun 2019 19:44:08 -0700 Subject: [PATCH] Fix warnings --- include/fmt/chrono.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index f75cd9b9..ff23cfba 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -548,14 +548,14 @@ struct chrono_formatter { void on_12_hour(numeric_system ns) { if (ns == numeric_system::standard) return write(hour12(), 2); auto time = tm(); - time.tm_hour = hour12(); + time.tm_hour = to_int(hour12()); format_localized(time, "%OI"); } void on_minute(numeric_system ns) { if (ns == numeric_system::standard) return write(minute(), 2); auto time = tm(); - time.tm_min = minute(); + time.tm_min = to_int(minute()); format_localized(time, "%OM"); } @@ -570,7 +570,7 @@ struct chrono_formatter { return; } auto time = tm(); - time.tm_sec = second(); + time.tm_sec = to_int(second()); format_localized(time, "%OS"); }