diff --git a/src/ripple/overlay/impl/ZeroCopyStream.h b/src/ripple/overlay/impl/ZeroCopyStream.h index 5da2798e12..a228c1aaf5 100644 --- a/src/ripple/overlay/impl/ZeroCopyStream.h +++ b/src/ripple/overlay/impl/ZeroCopyStream.h @@ -38,7 +38,7 @@ private: using iterator = typename Buffers::const_iterator; using const_buffer = boost::asio::const_buffer; - std::int64_t count_ = 0; + google::protobuf::int64 count_ = 0; iterator last_; iterator first_; // Where pos_ comes from const_buffer pos_; // What Next() will return @@ -56,7 +56,7 @@ public: bool Skip (int count) override; - std::int64_t + google::protobuf::int64 ByteCount() const override { return count_; @@ -142,7 +142,7 @@ private: Streambuf& streambuf_; std::size_t blockSize_; - std::size_t count_ = 0; + google::protobuf::int64 count_ = 0; std::size_t commit_ = 0; buffers_type buffers_; iterator pos_; @@ -160,7 +160,7 @@ public: void BackUp (int count) override; - std::int64_t + google::protobuf::int64 ByteCount() const override { return count_;