From 6b19ec629d32e872d2e430987526162b2954b851 Mon Sep 17 00:00:00 2001 From: ochang Date: Tue, 12 Apr 2016 11:53:23 -0700 Subject: Fix Windows 32-bit GN build. R=tsepez@chromium.org,weili@chromium.org Review URL: https://codereview.chromium.org/1879083002 --- core/fpdfdoc/cpvt_generateap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(value)) { bSelected = TRUE; break; } -- cgit v1.2.3