summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-02-01 19:17:04 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-01 19:17:04 +0000
commite899dd7d820ec1ab7cb27bfd23dbe0a09ec3a0c3 (patch)
treed09c78cd760539d11fa24ab14e5619bf7236b534
parent55c62a48d36c042499c68b0aca60bc34fa2b5c99 (diff)
downloadpdfium-e899dd7d820ec1ab7cb27bfd23dbe0a09ec3a0c3.tar.xz
Change return of FPDFDest_GetDestPageIndex to int.
Bug: pdfium:938 Change-Id: Ic530788313157ce2513f91217705401da7a05ef8 Reviewed-on: https://pdfium-review.googlesource.com/25030 Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
-rw-r--r--fpdfsdk/fpdfdoc.cpp4
-rw-r--r--public/fpdf_doc.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/fpdfdoc.cpp b/fpdfsdk/fpdfdoc.cpp
index 4b51d6391d..e5edc29b9f 100644
--- a/fpdfsdk/fpdfdoc.cpp
+++ b/fpdfsdk/fpdfdoc.cpp
@@ -212,8 +212,8 @@ FPDFDest_GetPageIndex(FPDF_DOCUMENT document, FPDF_DEST pDest) {
return dest.GetPageIndexDeprecated(pDoc);
}
-FPDF_EXPORT long FPDF_CALLCONV FPDFDest_GetDestPageIndex(FPDF_DOCUMENT document,
- FPDF_DEST pDest) {
+FPDF_EXPORT int FPDF_CALLCONV FPDFDest_GetDestPageIndex(FPDF_DOCUMENT document,
+ FPDF_DEST pDest) {
if (!pDest)
return -1;
diff --git a/public/fpdf_doc.h b/public/fpdf_doc.h
index 7ec232c45e..b0a1f3b492 100644
--- a/public/fpdf_doc.h
+++ b/public/fpdf_doc.h
@@ -196,8 +196,8 @@ FPDFDest_GetPageIndex(FPDF_DOCUMENT document, FPDF_DEST dest);
// dest - handle to the destination.
//
// Returns the -based page index containing |dest|. Returns -1 on error.
-FPDF_EXPORT long FPDF_CALLCONV FPDFDest_GetDestPageIndex(FPDF_DOCUMENT document,
- FPDF_DEST dest);
+FPDF_EXPORT int FPDF_CALLCONV FPDFDest_GetDestPageIndex(FPDF_DOCUMENT document,
+ FPDF_DEST dest);
// Get the view (fit type) specified by |dest|.
// Experimental API. Subject to change.