From 0f658db2cdb20defeb010a55dcc8c23b75ae217e Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 9 Sep 2017 15:32:47 -0400 Subject: [PATCH] Correct how width is counted for fractional seconds * Include decimal point character in count. --- date.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/date.h b/date.h index bca0298..5476bf7 100644 --- a/date.h +++ b/date.h @@ -5767,9 +5767,8 @@ read_long_double(std::basic_istream& is, unsigned m = 1, unsigned break; buf += c; (void)is.get(); - ++count; } - if (count == M) + if (++count == M) break; } if (count < m)