diff options
author | ochang <ochang@chromium.org> | 2016-04-12 11:53:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-12 11:53:23 -0700 |
commit | 6b19ec629d32e872d2e430987526162b2954b851 (patch) | |
tree | 3bab51878e1a746c8bdc28e63f0e14d62078ee67 | |
parent | fa6382f7d8080a0fd9f506f349c3425bf132f0f0 (diff) | |
download | pdfium-6b19ec629d32e872d2e430987526162b2954b851.tar.xz |
Fix Windows 32-bit GN build.
R=tsepez@chromium.org,weili@chromium.org
Review URL: https://codereview.chromium.org/1879083002
-rw-r--r-- | core/fpdfdoc/cpvt_generateap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp index 7b4ad2ff4f..3c2b47c275 100644 --- a/core/fpdfdoc/cpvt_generateap.cpp +++ b/core/fpdfdoc/cpvt_generateap.cpp @@ -370,7 +370,8 @@ FX_BOOL GenerateWidgetAP(CPDF_Document* pDoc, FX_BOOL bSelected = FALSE; if (pSels) { for (size_t s = 0, ssz = pSels->GetCount(); s < ssz; s++) { - if (i == pSels->GetIntegerAt(s)) { + int value = pSels->GetIntegerAt(s); + if (value >= 0 && i == static_cast<size_t>(value)) { bSelected = TRUE; break; } |