mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 16:41:04 +08:00
Count sign as part of the character count : part 2
* Fix up some damage caused by previous commit.
This commit is contained in:
parent
ab37c362e3
commit
5d225951ff
@ -7520,7 +7520,12 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
|||||||
{
|
{
|
||||||
auto c = static_cast<char>(Traits::to_char_type(ic));
|
auto c = static_cast<char>(Traits::to_char_type(ic));
|
||||||
if (c == '-')
|
if (c == '-')
|
||||||
|
{
|
||||||
neg = true;
|
neg = true;
|
||||||
|
(void)is.get();
|
||||||
|
}
|
||||||
|
else if (c == '+')
|
||||||
|
(void)is.get();
|
||||||
}
|
}
|
||||||
if (modified == CharT{})
|
if (modified == CharT{})
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user