This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new fc2e58cf Use int64_t instead of google::protobuf::int64 (#3081)
fc2e58cf is described below

commit fc2e58cf574a4425f4da58c266975b1bb93f60fc
Author: Bright Chen <[email protected]>
AuthorDate: Wed Sep 3 10:14:09 2025 +0800

    Use int64_t instead of google::protobuf::int64 (#3081)
---
 src/butil/iobuf.cpp                   | 4 ++--
 src/json2pb/zero_copy_stream_writer.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/butil/iobuf.cpp b/src/butil/iobuf.cpp
index f1f3d023..5ad13566 100644
--- a/src/butil/iobuf.cpp
+++ b/src/butil/iobuf.cpp
@@ -1869,7 +1869,7 @@ bool IOBufAsZeroCopyInputStream::Skip(int count) {
     return false;
 }
 
-google::protobuf::int64 IOBufAsZeroCopyInputStream::ByteCount() const {
+int64_t IOBufAsZeroCopyInputStream::ByteCount() const {
     return _byte_count;
 }
 
@@ -1990,7 +1990,7 @@ void IOBufAsZeroCopyOutputStream::BackUp(int count) {
     LOG_IF(FATAL, count != 0) << "BackUp an empty IOBuf";
 }
 
-google::protobuf::int64 IOBufAsZeroCopyOutputStream::ByteCount() const {
+int64_t IOBufAsZeroCopyOutputStream::ByteCount() const {
     return _byte_count;
 }
 
diff --git a/src/json2pb/zero_copy_stream_writer.h 
b/src/json2pb/zero_copy_stream_writer.h
index 53455cc8..64042119 100644
--- a/src/json2pb/zero_copy_stream_writer.h
+++ b/src/json2pb/zero_copy_stream_writer.h
@@ -29,7 +29,7 @@
 //    // Interfaces of ZeroCopyOutputStream
 //    bool Next(void** data, int* size);
 //    void BackUp(int count);
-//    google::protobuf::int64 ByteCount() const;
+//    int64_t ByteCount() const;
 //
 //private:
 //    IOBuf* _buf;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to