Fix warning: comparison of unsigned expression < 0 is always false
diff --git a/poppler/FlateEncoder.cc b/poppler/FlateEncoder.cc
index 49a0fa3..def50a0 100644
--- a/poppler/FlateEncoder.cc
+++ b/poppler/FlateEncoder.cc
@@ -127,7 +127,6 @@
zlib_status = deflate(&zlib_stream, (inBufEof? Z_FINISH: Z_NO_FLUSH));
if (zlib_status == Z_STREAM_ERROR ||
- zlib_stream.avail_out < 0 ||
zlib_stream.avail_out > starting_avail_out) {
/* Unrecoverable error */
inBufEof = outBufEof = gTrue;
diff --git a/poppler/StructTreeRoot.cc b/poppler/StructTreeRoot.cc
index b8c52c6..f7c7153 100644
--- a/poppler/StructTreeRoot.cc
+++ b/poppler/StructTreeRoot.cc
@@ -66,8 +66,8 @@
error(errSyntaxError, -1, "Nums item at position {0:d} is wrong type ({1:s})", i, index.getTypeName());
continue;
}
- const unsigned idx = index.getInt();
- if (idx < 0 || idx >= parentTree.size()) {
+ const int idx = index.getInt();
+ if (idx < 0 || idx >= (int)parentTree.size()) {
error(errSyntaxError, -1, "Nums item at position {0:d} is invalid value ({1:d}): [0..{2:d}]", i, idx, parentTree.size() - 1);
continue;
}