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