Skip to content
Snippets Groups Projects
Commit 63ba0286 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

WRG: fix 2^n warning

parent 4ba844d3
Branches
Tags
No related merge requests found
......@@ -213,7 +213,8 @@ MapFileProductWriter<TInputImage>
m_CurrentDepth = depth;
// Resample image to the max Depth
int sampleRatioValue = static_cast<int>(vcl_pow(2., (maxDepth - depth)));
// int sampleRatioValue = static_cast<int>(vcl_pow(2., (maxDepth - depth)));
int sampleRatioValue = 1 << (maxDepth - depth); // 2^(maxDepth - depth)
if (sampleRatioValue > 1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment