소스 검색

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

Dinis Rosário 11 년 전
부모
커밋
bb7d210c2a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/google/protobuf/wire_format_lite_inl.h

+ 1 - 1
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<CType, DeclaredType>(input, &value)) return false;
       values->Add(value);
     }