2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-31 09:20:52 +00:00

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.
This commit is contained in:
Jay Berkenbilt 2013-03-04 16:43:29 -05:00
parent 6c7bf114dc
commit 9f1594656c

View File

@ -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)
{