summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-03-04 22:43:29 +0100
committerJay Berkenbilt <ejb@ql.org>2013-03-04 22:43:29 +0100
commit9f1594656cc4702b4b0e99a2787e18e4b00d54d3 (patch)
treeb2243000026b1ccb01268666ce29ae1e32794c7c
parent6c7bf114dc0402dfbfaef4586f05dfd398e57e16 (diff)
downloadqpdf-9f1594656cc4702b4b0e99a2787e18e4b00d54d3.tar.zst
Work around gcc 4.8.0 issue on ppc64
Change iteration to use size_t instead of int. The code should be equivalent in all reasonable cases, but the original way this was coded was causing a test failure with gcc 4.8.0 on ppc64. See https://bugzilla.redhat.com/show_bug.cgi?id=915321 for additional information.
-rw-r--r--qpdf/qpdf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc
index a416870a..fe168cf5 100644
--- a/qpdf/qpdf.cc
+++ b/qpdf/qpdf.cc
@@ -1617,7 +1617,7 @@ int main(int argc, char* argv[])
// This prevents those objects from being preserved by
// being referred to from other places, such as the
// outlines dictionary.
- for (int pageno = 0; pageno < (int)orig_pages.size(); ++pageno)
+ for (size_t pageno = 0; pageno < orig_pages.size(); ++pageno)
{
if (selected_from_orig.count(pageno) == 0)
{