Mercurial > hg > orthanc-wsi
comparison 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 |
comparison
equal
deleted
inserted
replaced
178:62f83d58a81b | 179:f80631f632ad |
---|---|
166 static OPJ_SIZE_T Read(void *target, | 166 static OPJ_SIZE_T Read(void *target, |
167 OPJ_SIZE_T size, | 167 OPJ_SIZE_T size, |
168 void *userData) | 168 void *userData) |
169 { | 169 { |
170 OpenJpegInput& that = *reinterpret_cast<OpenJpegInput*>(userData); | 170 OpenJpegInput& that = *reinterpret_cast<OpenJpegInput*>(userData); |
171 assert(that.position_ >= 0 && that.position_ <= that.size_); | 171 assert(that.position_ <= that.size_); |
172 assert(size >= 0); | 172 assert(size >= 0); |
173 | 173 |
174 if (that.position_ == that.size_) | 174 if (that.position_ == that.size_) |
175 { | 175 { |
176 // End of file | 176 // End of file |