Bug 79410

Summary: Change pagenum arguments in PDFDoc::markAnnotations from Guint to int
Product: poppler Reporter: Hib Eris <hib>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Change pagenum arguments in PDFDoc::markAnnotations from Guint to int

Description Hib Eris 2014-05-29 11:37:07 UTC
Fixes compile warning:

  CXX      PDFDoc.lo
PDFDoc.cc: In member function 'GBool PDFDoc::markAnnotations(Object*, XRef*, XRef*, Guint, Guint, Guint)':
PDFDoc.cc:1607:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
               if (obj2.getRef().num == oldPageNum) {
                                        ^
PDFDoc.cc:1617:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
               } else if (obj2.getRef().num == newPageNum) {
Comment 1 Hib Eris 2014-05-29 11:37:10 UTC
Created attachment 100104 [details] [review]
Change pagenum arguments in PDFDoc::markAnnotations from Guint to int
Comment 2 Albert Astals Cid 2014-06-03 18:46:38 UTC
Correct, PDFDoc::getPage accepts an int, so no need to use a guint there.
Comment 3 Albert Astals Cid 2014-06-03 18:50:35 UTC
Commited to master though, don't want to break BC just because that small warning in the stable branch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.