Mercurial > hg > orthanc-wsi
comparison Framework/Jpeg2000Reader.cpp @ 227:aff61c449308
fix warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 13 Jan 2021 14:42:25 +0100 |
parents | 4eefa34657f0 |
children | 49f647ed1b4c |
comparison
equal
deleted
inserted
replaced
226:4eefa34657f0 | 227:aff61c449308 |
---|---|
327 unsigned int targetIncrement) | 327 unsigned int targetIncrement) |
328 { | 328 { |
329 const unsigned int width = target.GetWidth(); | 329 const unsigned int width = target.GetWidth(); |
330 const unsigned int height = target.GetHeight(); | 330 const unsigned int height = target.GetHeight(); |
331 | 331 |
332 if (static_cast<int>(width) == image_->comps[channel].w && | 332 if (width == static_cast<unsigned int>(image_->comps[channel].w) && |
333 static_cast<int>(height) == image_->comps[channel].h) | 333 height == static_cast<unsigned int>(image_->comps[channel].h)) |
334 { | 334 { |
335 const int32_t* q = image_->comps[channel].data; | 335 const int32_t* q = image_->comps[channel].data; |
336 assert(q != NULL); | 336 assert(q != NULL); |
337 | 337 |
338 for (unsigned int y = 0; y < height; y++) | 338 for (unsigned int y = 0; y < height; y++) |