File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3333 apt-get install -yq \
3434 clang-${{ matrix.clang }} \
3535 clang-tidy-${{ matrix.clang }} \
36+ libstdc++-dev \
3637 cmake \
3738 libprotobuf-dev \
3839 make \
Original file line number Diff line number Diff line change @@ -32,13 +32,11 @@ namespace detail {
3232
3333 // from https://github.com/facebook/folly/blob/master/folly/Varint.h
3434 inline uint64_t decode_varint_impl (const char ** data, const char * end) {
35- const auto * begin = reinterpret_cast <const int8_t *>(*data);
36- const auto * iend = reinterpret_cast <const int8_t *>(end);
37- const int8_t * p = begin;
35+ const int8_t * p = reinterpret_cast <const int8_t *>(*data);
36+ const int8_t * const iend = reinterpret_cast <const int8_t *>(end);
3837 uint64_t val = 0 ;
3938
40- if (iend - begin >= max_varint_length) { // fast path
41- assert (iend - p >= max_varint_length); // help Clang analyzer
39+ if (iend - p >= max_varint_length) { // fast path
4240 do {
4341 int64_t b = *p++;
4442 val = ((static_cast <uint64_t >(b) & 0x7fU ) ); if (b >= 0 ) { break ; }
You can’t perform that action at this time.
0 commit comments