Silence -Wsign-compare warning on Mac

pull/71/head
abyss7 10 years ago
parent 53d202f587
commit 717f807499
  1. 2
      src/google/protobuf/wire_format_lite_inl.h

@ -380,7 +380,7 @@ inline bool WireFormatLite::ReadPackedFixedSizePrimitive(
#else #else
values->Reserve(old_entries + new_entries); values->Reserve(old_entries + new_entries);
CType value; 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; if (!ReadPrimitive<CType, DeclaredType>(input, &value)) return false;
values->AddAlreadyReserved(value); values->AddAlreadyReserved(value);
} }

Loading…
Cancel
Save