From bb7d210c2a99e45f12002cb67f337de933f35e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dinis=20Ros=C3=A1rio?= Date: Tue, 23 Sep 2014 14:03:46 +0100 Subject: [PATCH] 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 ca367f5927..1c047084f2 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); }