fix another build warning

This commit is contained in:
Arvid Norberg 2014-12-09 09:49:14 +00:00
parent 5666cdcd07
commit 0b960615b1
1 changed files with 2 additions and 1 deletions

View File

@ -1886,11 +1886,12 @@ int main(int argc, char* argv[])
"################################" "################################"
"################################" "################################"
"################################"; "################################";
char const* short_progress_bar = "--------";
snprintf(str, sizeof(str) snprintf(str, sizeof(str)
, "%3d [%3d, %d] %s%s\n" , "%3d [%3d, %d] %s%s\n"
, bucket, i->num_nodes, i->num_replacements , bucket, i->num_nodes, i->num_replacements
, progress_bar + (128 - i->num_nodes) , progress_bar + (128 - i->num_nodes)
, "--------" + (8 - (std::min)(8, i->num_replacements))); , short_progress_bar + (8 - (std::min)(8, i->num_replacements)));
out += str; out += str;
} }