diff --git a/include/xrpl/beast/hash/xxhasher.h b/include/xrpl/beast/hash/xxhasher.h index c1984279ad..24668ad707 100644 --- a/include/xrpl/beast/hash/xxhasher.h +++ b/include/xrpl/beast/hash/xxhasher.h @@ -107,8 +107,8 @@ public: exit(-1); } std::memcpy(writeSpan_.data(), key, len); - writeSpan_ = writeSpan_.subspan(len); readSpan_ = std::span(std::begin(buffer_), readSpan_.size() + len); + writeSpan_ = std::span(std::begin(buffer_) + readSpan_.size(), buffer_.size() - readSpan_.size()); } explicit