Skip to content

Commit

Permalink
Silence lossy conversion warning
Browse files Browse the repository at this point in the history
Fixes #620
  • Loading branch information
HowardHinnant committed Nov 10, 2020
1 parent 432bab8 commit 97246a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/date/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -6966,7 +6966,7 @@ from_stream(std::basic_istream<CharT, Traits>& 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<decltype(tp)>(i);
#endif
checked_set(p, tp, not_a_ampm, is);
}
Expand Down

0 comments on commit 97246a6

Please sign in to comment.