From 9f1594656cc4702b4b0e99a2787e18e4b00d54d3 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 4 Mar 2013 16:43:29 -0500 Subject: 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. --- qpdf/qpdf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2