Skip to content

Commit fc2e58c

Browse files
authored
Use int64_t instead of google::protobuf::int64 (#3081)
1 parent b990d5c commit fc2e58c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/butil/iobuf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ bool IOBufAsZeroCopyInputStream::Skip(int count) {
18691869
return false;
18701870
}
18711871

1872-
google::protobuf::int64 IOBufAsZeroCopyInputStream::ByteCount() const {
1872+
int64_t IOBufAsZeroCopyInputStream::ByteCount() const {
18731873
return _byte_count;
18741874
}
18751875

@@ -1990,7 +1990,7 @@ void IOBufAsZeroCopyOutputStream::BackUp(int count) {
19901990
LOG_IF(FATAL, count != 0) << "BackUp an empty IOBuf";
19911991
}
19921992

1993-
google::protobuf::int64 IOBufAsZeroCopyOutputStream::ByteCount() const {
1993+
int64_t IOBufAsZeroCopyOutputStream::ByteCount() const {
19941994
return _byte_count;
19951995
}
19961996

src/json2pb/zero_copy_stream_writer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// // Interfaces of ZeroCopyOutputStream
3030
// bool Next(void** data, int* size);
3131
// void BackUp(int count);
32-
// google::protobuf::int64 ByteCount() const;
32+
// int64_t ByteCount() const;
3333
//
3434
//private:
3535
// IOBuf* _buf;

0 commit comments

Comments
 (0)