mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 05:19:30 +00:00
C-style cast cleanup.
This commit is contained in:
parent
7e48edf793
commit
8e391cea1c
@ -890,7 +890,7 @@ static std::string format_file_size(const std::string& size_str)
|
|||||||
stream << std::fixed << size << size_postfix;
|
stream << std::fixed << size << size_postfix;
|
||||||
#else
|
#else
|
||||||
if (size < 100) stream.precision(3);
|
if (size < 100) stream.precision(3);
|
||||||
else size = (int)size;
|
else size = static_cast<int>(size);
|
||||||
stream << size << size_postfix;
|
stream << size << size_postfix;
|
||||||
#endif
|
#endif
|
||||||
return stream.str();
|
return stream.str();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user