Эх сурвалжийг харах

Fix a NULL/bool conversion.

liujisi@google.com 13 жил өмнө
parent
commit
aabd7cf8f8

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