Index: core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
diff --git a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
index 32517d6b54698865d711ea3e7e30ff6687ba9410..bf691f41d2f2053404d6ef5d4e0f90f88c37c3c3 100644 |
--- a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
+++ b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
@@ -1126,15 +1126,14 @@ void CPDF_StreamContentParser::Handle_SetColorPS_Fill() { |
if (!pLastParam) { |
return; |
} |
- int nargs = m_ParamCount; |
- int nvalues = nargs; |
- if (pLastParam->IsName()) { |
+ uint32_t nargs = m_ParamCount; |
+ uint32_t nvalues = nargs; |
+ if (pLastParam->IsName()) |
nvalues--; |
- } |
FX_FLOAT* values = NULL; |
if (nvalues) { |
values = FX_Alloc(FX_FLOAT, nvalues); |
- for (int i = 0; i < nvalues; i++) { |
+ for (uint32_t i = 0; i < nvalues; i++) { |
values[i] = GetNumber(nargs - i - 1); |
} |
} |