We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a21f51 commit 2d03048Copy full SHA for 2d03048
.github/workflows/clang-tidy.yml
@@ -15,7 +15,7 @@ jobs:
15
- image: "debian:testing"
16
clang: 19
17
- image: "debian:experimental"
18
- clang: 20
+ clang: 22
19
container:
20
image: ${{ matrix.image }}
21
env:
include/protozero/varint.hpp
@@ -38,6 +38,7 @@ namespace detail {
38
uint64_t val = 0;
39
40
if (iend - begin >= max_varint_length) { // fast path
41
+ assert(iend - p >= max_varint_length); // help Clang analyzer
42
do {
43
int64_t b = *p++;
44
val = ((static_cast<uint64_t>(b) & 0x7fU) ); if (b >= 0) { break; }
0 commit comments