mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-13 17:34:45 +08:00
parent
8b69087d35
commit
9dc96fd9b5
@ -6248,7 +6248,7 @@ read(std::basic_istream<CharT, Traits>& is, int a0, Args&& ...args)
|
||||
auto e = buf;
|
||||
do
|
||||
{
|
||||
*e++ = CharT(u % 10) + CharT{'0'};
|
||||
*e++ = static_cast<CharT>(CharT(u % 10) + CharT{'0'});
|
||||
u /= 10;
|
||||
} while (u > 0);
|
||||
std::reverse(buf, e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user