浏览代码

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_);