]> Creatis software - clitk.git/commitdiff
Fixed ambiguous overloading
authorsrit <srit>
Tue, 20 Jul 2010 15:19:43 +0000 (15:19 +0000)
committersrit <srit>
Tue, 20 Jul 2010 15:19:43 +0000 (15:19 +0000)
filters/clitkSplitImageGenericFilter.cxx

index 433fb93e69ca5258090e0d0e92eecec56d97f783..4fd6eac9e0de58fb4d879f729767180a2e52f25e 100644 (file)
@@ -72,7 +72,7 @@ void clitk::SplitImageGenericFilter::UpdateWithInputImageType()
   unsigned int number_of_output_images=input->GetLargestPossibleRegion().GetSize()[mSplitDimension];
   for (unsigned int i=0; i<number_of_output_images; i++) {
     std::ostringstream ss;
-    ss << std::setfill('0') << std::setw((int)(log10(number_of_output_images)+1)) << i;
+    ss << std::setfill('0') << std::setw((int)(log10(double(number_of_output_images))+1)) << i;
     index[mSplitDimension]=i;
     extracted_region.SetIndex(index);
     filter->SetExtractionRegion(extracted_region);