Count sign as part of the character count : part 2

* Fix up some damage caused by previous commit.
This commit is contained in:
Howard Hinnant 2023-12-19 10:12:30 -05:00
parent ab37c362e3
commit 5d225951ff

View File

@ -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));
if (c == '-')
{
neg = true;
(void)is.get();
}
else if (c == '+')
(void)is.get();
}
if (modified == CharT{})
{