Browse Source

Merge pull request #665 from cheng-chang:coding

PiperOrigin-RevId: 243316002
naive_version
Chris Mumford 5 years ago
parent
commit
ffabb1ae86
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      util/coding.cc

+ 1
- 1
util/coding.cc View File

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

Loading…
Cancel
Save