mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-14 00:41:17 +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;
|
||||
#else
|
||||
if (size < 100) stream.precision(3);
|
||||
else size = (int)size;
|
||||
else size = static_cast<int>(size);
|
||||
stream << size << size_postfix;
|
||||
#endif
|
||||
return stream.str();
|
||||
|
Loading…
x
Reference in New Issue
Block a user