# HG changeset patch # User Sebastien Jodogne # Date 1610545345 -3600 # Node ID aff61c4493088c072e36aaec7deb5065e6b33e59 # Parent 4eefa34657f0fcff40b0801f69ed2f9e3a0af2eb fix warning diff -r 4eefa34657f0 -r aff61c449308 Framework/Jpeg2000Reader.cpp --- a/Framework/Jpeg2000Reader.cpp Wed Jan 13 13:17:03 2021 +0100 +++ b/Framework/Jpeg2000Reader.cpp Wed Jan 13 14:42:25 2021 +0100 @@ -329,8 +329,8 @@ const unsigned int width = target.GetWidth(); const unsigned int height = target.GetHeight(); - if (static_cast(width) == image_->comps[channel].w && - static_cast(height) == image_->comps[channel].h) + if (width == static_cast(image_->comps[channel].w) && + height == static_cast(image_->comps[channel].h)) { const int32_t* q = image_->comps[channel].data; assert(q != NULL);