소스 검색

Fix a NULL/bool conversion.

liujisi@google.com 13 년 전
부모
커밋
aabd7cf8f8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/google/protobuf/io/coded_stream.cc

+ 1 - 1
src/google/protobuf/io/coded_stream.cc

@@ -452,7 +452,7 @@ bool CodedInputStream::ReadVarint64Fallback(uint64* value) {
 
     // We have overrun the maximum size of a varint (10 bytes).  The data
     // must be corrupt.
-    return NULL;
+    return false;
 
    done:
     Advance(ptr - buffer_);