]> Creatis software - clitk.git/blobdiff - common/clitkCommon.cxx
no more useful
[clitk.git] / common / clitkCommon.cxx
index 37866ab7468aaa66b3d8063af605905c026781b5..0ee9a74e0bd8fab9c27dc4f177874aadeb265286 100644 (file)
@@ -79,10 +79,10 @@ void clitk::VerboseInProgress(const int nb, const int current, const int percent
   previous = rounded;
 
   std::ostringstream oss;
-  oss << rounded << '%';
+  oss << std::setw(4) << rounded << '%';
 
   std::cout << oss.str() << std::flush;
-  for (int i=0; i<oss.str().length(); ++i) 
+  for (unsigned int i=0; i<oss.str().length(); ++i) 
        std::cout << "\b" << std::flush;
 }
 //------------------------------------------------------------------