static_cast to silent warning implict conversion (#693)

That happen because `sizeof(long long unsigned int) == sizeof(long double)` in 32-bit architectures.
This commit is contained in:
Nicolas 2021-08-17 12:35:13 -03:00 committed by GitHub
parent d57d764707
commit b0adc54677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6405,7 +6405,7 @@ read_long_double(std::basic_istream<CharT, Traits>& is, unsigned m = 1, unsigned
is.setstate(std::ios::failbit); is.setstate(std::ios::failbit);
return 0; return 0;
} }
return i + f/std::pow(10.L, fcount); return static_cast<long double>(i) + static_cast<long double>(f)/std::pow(10.L, fcount);
} }
struct rs struct rs