Skip to content

Commit dbc54b7

Browse files
authored
replace google::protobuf::int64 by int64_t (#3045)
google::protobuf::int64 has been removed.
1 parent f838e0f commit dbc54b7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/butil/iobuf.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define BUTIL_IOBUF_H
2424

2525
#include <sys/uio.h> // iovec
26-
#include <stdint.h> // uint32_t
26+
#include <stdint.h> // uint32_t, int64_t
2727
#include <functional>
2828
#include <string> // std::string
2929
#include <ostream> // std::ostream
@@ -562,12 +562,12 @@ class IOBufAsZeroCopyInputStream
562562
bool Next(const void** data, int* size) override;
563563
void BackUp(int count) override;
564564
bool Skip(int count) override;
565-
google::protobuf::int64 ByteCount() const override;
565+
int64_t ByteCount() const override;
566566

567567
private:
568568
int _ref_index;
569569
int _add_offset;
570-
google::protobuf::int64 _byte_count;
570+
int64_t _byte_count;
571571
const IOBuf* _buf;
572572
};
573573

@@ -593,15 +593,15 @@ class IOBufAsZeroCopyOutputStream
593593

594594
bool Next(void** data, int* size) override;
595595
void BackUp(int count) override; // `count' can be as long as ByteCount()
596-
google::protobuf::int64 ByteCount() const override;
596+
int64_t ByteCount() const override;
597597

598598
private:
599599
void _release_block();
600600

601601
IOBuf* _buf;
602602
uint32_t _block_size;
603603
IOBuf::Block *_cur_block;
604-
google::protobuf::int64 _byte_count;
604+
int64_t _byte_count;
605605
};
606606

607607
// Wrap IOBuf into input of snappy compression.

0 commit comments

Comments
 (0)