From 9dc96fd9b5e4e1e7885aa80dc24a3ceb407c3730 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 26 Mar 2019 18:13:39 -0400 Subject: [PATCH] Silence warning Fixes #337 --- 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 b8dd6a7..79ab0da 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -6248,7 +6248,7 @@ read(std::basic_istream& is, int a0, Args&& ...args) auto e = buf; do { - *e++ = CharT(u % 10) + CharT{'0'}; + *e++ = static_cast(CharT(u % 10) + CharT{'0'}); u /= 10; } while (u > 0); std::reverse(buf, e);