Chromium Code Reviews| Index: core/src/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp |
| diff --git a/core/src/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp b/core/src/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp |
| index 6256f4c526b273f0b0e543e97a4a4e657bd67ab1..1d6e9a27109f3eec4af7d1c22132e6ab3d01b86e 100644 |
| --- a/core/src/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp |
| +++ b/core/src/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp |
| @@ -267,7 +267,7 @@ FX_BOOL CPDF_HintTables::ReadSharedObjHintTable(CFX_BitStream* hStream, |
| if (!CanReadFromBitStream(hStream, required_bits)) |
| return FALSE; |
| - for (int i = 0; i < dwSharedObjTotal; ++i) { |
| + for (size_t i = 0; i < dwSharedObjTotal; ++i) { |
|
Tom Sepez
2016/03/11 00:30:28
nit: how about FX_DWORD, to match the type of dwSh
Wei Li
2016/03/11 04:11:36
Done.
|
| dwPrevObjLen = dwCurObjLen; |
| FX_SAFE_DWORD safeObjLen = hStream->GetBits(dwDeltaGroupLen); |
| safeObjLen += dwGroupLeastLen; |