C-style cast cleanup.

This commit is contained in:
Mark de Wever 2007-08-26 17:01:42 +00:00
parent 7e48edf793
commit 8e391cea1c

View File

@ -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();