*** empty log message ***

This commit is contained in:
Arvid Norberg
2005-05-30 22:50:54 +00:00
parent fbffae1981
commit 3ba7f05bb9
3 changed files with 4 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ std::string progress_bar(float progress, int width)
std::vector<char> bar;
bar.reserve(width);
int progress_chars = progress * width + .5f;
int progress_chars = static_cast<int>(progress * width + .5f);
std::fill_n(std::back_inserter(bar), progress_chars, '#');
std::fill_n(std::back_inserter(bar), width - progress_chars, '-');
return std::string(bar.begin(), bar.end());