Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp

Issue 1841643002: Code change to avoid signed/unsigned mismatch warnings (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp ('k') | core/fpdfapi/fpdf_font/cpdf_cidfont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
diff --git a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
index 0f087d980a91807f4d3c82fc9c10b7c182a760db..21934d35c48424f7e522c8ba760c9bfb341ab2f5 100644
--- a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
+++ b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
@@ -1410,7 +1410,7 @@ void CPDF_Creator::InitNewObjNumOffsets() {
for (const auto& pair : m_pDocument->m_IndirectObjs) {
const uint32_t objnum = pair.first;
const CPDF_Object* pObj = pair.second;
- if (pObj->GetObjNum() == -1)
+ if (pObj->GetObjNum() == CPDF_Object::kInvalidObjNum)
continue;
if (bIncremental) {
if (!pObj->IsModified())
« no previous file with comments | « core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp ('k') | core/fpdfapi/fpdf_font/cpdf_cidfont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698