From bb7d210c2a99e45f12002cb67f337de933f35e0c Mon Sep 17 00:00:00 2001 From: Dinis Rosário Date: Tue, 23 Sep 2014 14:03:46 +0100 Subject: Fix "warning C4018: '<' : signed/unsigned mismatch" at wire_format_lite_inl.h --- src/google/protobuf/wire_format_lite_inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/wire_format_lite_inl.h b/src/google/protobuf/wire_format_lite_inl.h index ca367f59..1c047084 100644 --- a/src/google/protobuf/wire_format_lite_inl.h +++ b/src/google/protobuf/wire_format_lite_inl.h @@ -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(input, &value)) return false; values->Add(value); } -- cgit v1.2.3