Fix "warning C4018: '<' : signed/unsigned mismatch" at wire_format_lite_inl.h

This commit is contained in:
Dinis Rosário 2014-09-23 14:03:46 +01:00
parent a48c08aa9a
commit bb7d210c2a

View file

@ -390,7 +390,7 @@ inline bool WireFormatLite::ReadPackedFixedSizePrimitive(
// safely allocate. We read as much as we can into *values
// without pre-allocating "length" bytes.
CType value;
for (int i = 0; i < new_entries; ++i) {
for (uint32 i = 0; i < new_entries; ++i) {
if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false;
values->Add(value);
}