minor fix

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-03-30 12:20:57 +01:00
parent 5c6858afe9
commit d564c1dda9

View File

@@ -53,7 +53,7 @@ read_varint(void const* buf, std::size_t buflen, std::size_t& t)
return 1;
}
auto const used = n;
for (; n > 0; --n)
for (n = n - 1; n > 0; --n)
{
auto const d = p[n];
auto const t0 = t;