Browse Source

Fix a NULL/bool conversion.

liujisi@google.com 13 năm trước cách đây
mục cha
commit
aabd7cf8f8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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_);