Update old style cast from (T) to static_cast<T>.

This commit is contained in:
Sam4uk
2022-02-09 00:06:36 +02:00
committed by GitHub
parent cdf89fa352
commit 26e3b70407

View File

@@ -128,7 +128,7 @@ ConvertStreamTo(std::stringstream& stream, T& rhs) {
if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) {
if (num >= (std::numeric_limits<T>::min)() &&
num <= (std::numeric_limits<T>::max)()) {
rhs = (T)num;
rhs = static_cast<T>(num);
return true;
}
}