Correct how width is counted for fractional seconds

* Include decimal point character in count.
This commit is contained in:
Howard Hinnant 2017-09-09 15:32:47 -04:00
parent 481771ef5e
commit 0f658db2cd

3
date.h
View File

@ -5767,9 +5767,8 @@ read_long_double(std::basic_istream<CharT, Traits>& is, unsigned m = 1, unsigned
break;
buf += c;
(void)is.get();
++count;
}
if (count == M)
if (++count == M)
break;
}
if (count < m)