summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Karlsson <jonas.karlsson@qt.io>2020-08-07 15:34:41 +0200
committerJonas Karlsson <jonas.karlsson@qt.io>2020-08-13 11:34:14 +0200
commit733873d3ae6ab8be4de5a56dec833bf4e024ce4a (patch)
treed3a6f1d0822b7f4df16abaea18a64a8b81b78ccf
parentb504c872c1e9356ffaa8ccd68e9449da76ed0860 (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.cpp2
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)));