diff options
author | Lei Zhang <thestig@chromium.org> | 2015-08-11 13:55:52 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-08-11 13:55:52 -0700 |
commit | b4c2167fff88665089eeab47afa45a9e890060a3 (patch) | |
tree | d40e8739cdfea849d6255d9d2237cd31896aba91 /fpdfsdk/src/fpdfdoc_embeddertest.cpp | |
parent | 1e2ece0cf98f8daecdea5b45ebd20cedbcef4bd9 (diff) | |
download | pdfium-b4c2167fff88665089eeab47afa45a9e890060a3.tar.xz |
Fix some sign comparison warnings.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1279493003 .
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)); } |