diff --git a/include/date/date.h b/include/date/date.h index 0c3d4c2..bb226ca 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -6405,7 +6405,7 @@ read_long_double(std::basic_istream& is, unsigned m = 1, unsigned is.setstate(std::ios::failbit); return 0; } - return i + f/std::pow(10.L, fcount); + return static_cast(i) + static_cast(f)/std::pow(10.L, fcount); } struct rs