From 97246a638a6d8f0269f4555c5e31106a86e3fd94 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 10 Nov 2020 08:41:30 -0500 Subject: [PATCH] Silence lossy conversion warning Fixes #620 --- include/date/date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/date/date.h b/include/date/date.h index bf5fe02..98c8b0e 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -6966,7 +6966,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, #else auto nm = detail::ampm_names(); auto i = detail::scan_keyword(is, nm.first, nm.second) - nm.first; - tp = i; + tp = static_cast(i); #endif checked_set(p, tp, not_a_ampm, is); }