Commit 9f1594656cc4702b4b0e99a2787e18e4b00d54d3

Authored by Jay Berkenbilt
1 parent 6c7bf114

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.
Showing 1 changed file with 1 additions and 1 deletions
qpdf/qpdf.cc
... ... @@ -1617,7 +1617,7 @@ int main(int argc, char* argv[])
1617 1617 // This prevents those objects from being preserved by
1618 1618 // being referred to from other places, such as the
1619 1619 // outlines dictionary.
1620   - for (int pageno = 0; pageno < (int)orig_pages.size(); ++pageno)
  1620 + for (size_t pageno = 0; pageno < orig_pages.size(); ++pageno)
1621 1621 {
1622 1622 if (selected_from_orig.count(pageno) == 0)
1623 1623 {
... ...