Mercurial > hg > orthanc-wsi
changeset 227:aff61c449308
fix warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 13 Jan 2021 14:42:25 +0100 |
parents | 4eefa34657f0 |
children | c6e7dda9ac14 |
files | Framework/Jpeg2000Reader.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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<int>(width) == image_->comps[channel].w && - static_cast<int>(height) == image_->comps[channel].h) + if (width == static_cast<unsigned int>(image_->comps[channel].w) && + height == static_cast<unsigned int>(image_->comps[channel].h)) { const int32_t* q = image_->comps[channel].data; assert(q != NULL);