diff options
author | Jonas Karlsson <jonas.karlsson@qt.io> | 2020-08-07 15:34:41 +0200 |
---|---|---|
committer | Jonas Karlsson <jonas.karlsson@qt.io> | 2020-08-13 11:34:14 +0200 |
commit | 733873d3ae6ab8be4de5a56dec833bf4e024ce4a (patch) | |
tree | d3a6f1d0822b7f4df16abaea18a64a8b81b78ccf | |
parent | b504c872c1e9356ffaa8ccd68e9449da76ed0860 (diff) |
fix error: comparison of integer expressions of different signedness
Change-Id: Ic90321394120d498343335d1de2e1ee9cdf82ace
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
-rw-r--r-- | src/plugins/imageformats/jp2/qjp2handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/imageformats/jp2/qjp2handler.cpp b/src/plugins/imageformats/jp2/qjp2handler.cpp index e9a470c..4311d26 100644 --- a/src/plugins/imageformats/jp2/qjp2handler.cpp +++ b/src/plugins/imageformats/jp2/qjp2handler.cpp @@ -1198,7 +1198,7 @@ void Jpeg2000JasperReader::printMetadata(jas_image_t *image) qDebug("Component metadata:"); - for (int c = 0; c < jas_image_numcmpts(image); ++c) { + for (int c = 0; c < static_cast<int>(jas_image_numcmpts(image)); ++c) { qDebug("Component %d:", c); qDebug(" Component type: %ld", long(jas_image_cmpttype(image, c))); qDebug(" Width: %ld", long(jas_image_cmptwidth(image, c))); |