diff options
author | Lei Zhang <thestig@chromium.org> | 2015-08-11 14:09:35 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-08-11 14:09:35 -0700 |
commit | b9c3197d815295632be4612301ee635e5eb95df1 (patch) | |
tree | 2ebc8827ff3908c9514514da97a932ce11440212 /fpdfsdk/src/fpdfdoc_embeddertest.cpp | |
parent | 119dc646ff7c108cc7319dbc11e05958d98fadfe (diff) | |
download | pdfium-b9c3197d815295632be4612301ee635e5eb95df1.tar.xz |
Fix some sign comparison warnings.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1279493003 .
(cherry picked from commit b4c2167fff88665089eeab47afa45a9e890060a3)
Review URL: https://codereview.chromium.org/1287703002 .
Diffstat (limited to 'fpdfsdk/src/fpdfdoc_embeddertest.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfdoc_embeddertest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/src/fpdfdoc_embeddertest.cpp b/fpdfsdk/src/fpdfdoc_embeddertest.cpp index 9c9fac8d15..b263fafe16 100644 --- a/fpdfsdk/src/fpdfdoc_embeddertest.cpp +++ b/fpdfsdk/src/fpdfdoc_embeddertest.cpp @@ -13,25 +13,25 @@ TEST_F(FPDFDocEmbeddertest, DestGetPageIndex) { EXPECT_TRUE(OpenDocument("testing/resources/named_dests.pdf")); // NULL FPDF_DEST case. - EXPECT_EQ(0, FPDFDest_GetPageIndex(document(), nullptr)); + EXPECT_EQ(0U, FPDFDest_GetPageIndex(document(), nullptr)); // Page number directly in item from Dests NameTree. FPDF_DEST dest = FPDF_GetNamedDestByName(document(), "First"); EXPECT_NE(nullptr, dest); - EXPECT_EQ(1, FPDFDest_GetPageIndex(document(), dest)); + EXPECT_EQ(1U, FPDFDest_GetPageIndex(document(), dest)); // Page number via object reference in item from Dests NameTree. dest = FPDF_GetNamedDestByName(document(), "Next"); EXPECT_NE(nullptr, dest); - EXPECT_EQ(1, FPDFDest_GetPageIndex(document(), dest)); + EXPECT_EQ(1U, FPDFDest_GetPageIndex(document(), dest)); // Page number directly in item from Dests dictionary. dest = FPDF_GetNamedDestByName(document(), "FirstAlternate"); EXPECT_NE(nullptr, dest); - EXPECT_EQ(11, FPDFDest_GetPageIndex(document(), dest)); + EXPECT_EQ(11U, FPDFDest_GetPageIndex(document(), dest)); // Invalid object reference in item from Dests NameTree. dest = FPDF_GetNamedDestByName(document(), "LastAlternate"); EXPECT_NE(nullptr, dest); - EXPECT_EQ(0, FPDFDest_GetPageIndex(document(), dest)); + EXPECT_EQ(0U, FPDFDest_GetPageIndex(document(), dest)); } |