Commit 7128be50 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

WRG: fix cast warning

parent 4dc4b58a
......@@ -43,7 +43,7 @@ ImageRegionTileMapSplitter<VImageDimension>
for (unsigned int j = VImageDimension; j > 0; --j)
{
// otbMsgDevMacro(<< "*** Dimension: " << j-1);
unsigned long int remainingToDo = vcl_ceil((double) requestedNumber / numPieces);
unsigned long int remainingToDo = static_cast<unsigned long int>(vcl_ceil(static_cast<double>(requestedNumber) / numPieces));
unsigned int maxPieces = (regionIndex[j - 1] + regionSize[j - 1] - 1) / m_AlignStep - regionIndex[j - 1]
/ m_AlignStep + 1;
unsigned int stepPerPiece = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment