Mercurial > hg > orthanc-wsi
diff Framework/Jpeg2000Reader.cpp @ 179:f80631f632ad
cppcheck, upgrade to Orthanc framework 1.7.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 26 May 2020 16:16:54 +0200 |
parents | e3cbf890b588 |
children | f299c191cd76 |
line wrap: on
line diff
--- a/Framework/Jpeg2000Reader.cpp Tue Apr 21 10:53:23 2020 +0200 +++ b/Framework/Jpeg2000Reader.cpp Tue May 26 16:16:54 2020 +0200 @@ -168,7 +168,7 @@ void *userData) { OpenJpegInput& that = *reinterpret_cast<OpenJpegInput*>(userData); - assert(that.position_ >= 0 && that.position_ <= that.size_); + assert(that.position_ <= that.size_); assert(size >= 0); if (that.position_ == that.size_)