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