update varint constants

This commit is contained in:
2025-02-08 20:08:19 +01:00
parent 462086b13c
commit ee865021c2

View File

@@ -5,8 +5,8 @@
namespace sp { namespace sp {
static constexpr int SEGMENT_BITS = 0x7F; static constexpr int SEGMENT_BITS = (1 << 7) - 1;
static constexpr int CONTINUE_BIT = 0x80; static constexpr int CONTINUE_BIT = 1 << 7;
std::size_t VarInt::GetSerializedLength() const { std::size_t VarInt::GetSerializedLength() const {
DataBuffer buffer; DataBuffer buffer;