| Index: core/fpdfapi/fpdf_parser/cpdf_array.cpp
|
| diff --git a/core/fpdfapi/fpdf_parser/cpdf_array.cpp b/core/fpdfapi/fpdf_parser/cpdf_array.cpp
|
| index 7ea27347453d1c7fe23d7fa2d46deee6a1b9d32b..964ba64236744543a8d59af02cc91526c61ebace 100644
|
| --- a/core/fpdfapi/fpdf_parser/cpdf_array.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cpdf_array.cpp
|
| @@ -131,14 +131,14 @@ CPDF_Array* CPDF_Array::GetArrayAt(uint32_t i) const {
|
| return ToArray(GetDirectObjectAt(i));
|
| }
|
|
|
| -void CPDF_Array::RemoveAt(uint32_t i, int nCount) {
|
| +void CPDF_Array::RemoveAt(uint32_t i, uint32_t nCount) {
|
| if (i >= (uint32_t)m_Objects.GetSize())
|
| return;
|
|
|
| if (nCount <= 0 || nCount > m_Objects.GetSize() - i)
|
| return;
|
|
|
| - for (int j = 0; j < nCount; ++j) {
|
| + for (uint32_t j = 0; j < nCount; ++j) {
|
| if (CPDF_Object* p = m_Objects.GetAt(i + j))
|
| p->Release();
|
| }
|
|
|