1
0
mirror of https://github.com/google/leveldb.git synced 2025-04-25 14:00:27 +08:00
This commit is contained in:
Hennadii Stepanov 2025-02-08 06:50:39 +08:00 committed by GitHub
commit 7979b99408
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ char* EncodeVarint64(char* dst, uint64_t v) {
static const int B = 128;
uint8_t* ptr = reinterpret_cast<uint8_t*>(dst);
while (v >= B) {
*(ptr++) = v | B;
*(ptr++) = static_cast<uint8_t>(v | B);
v >>= 7;
}
*(ptr++) = static_cast<uint8_t>(v);