From 0b960615b1ac9dd53c4924ed00d539b39611d5ee Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 9 Dec 2014 09:49:14 +0000 Subject: [PATCH] fix another build warning --- examples/client_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index cea3301d1..719ba15a6 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1886,11 +1886,12 @@ int main(int argc, char* argv[]) "################################" "################################" "################################"; + char const* short_progress_bar = "--------"; snprintf(str, sizeof(str) , "%3d [%3d, %d] %s%s\n" , bucket, i->num_nodes, i->num_replacements , 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; }