From d564c1dda9b5187c6e42374ef7afca2a68d6747c Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Mon, 30 Mar 2026 12:20:57 +0100 Subject: [PATCH] minor fix Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> --- include/xrpl/nodestore/detail/varint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xrpl/nodestore/detail/varint.h b/include/xrpl/nodestore/detail/varint.h index f0757a596e..307e79eab5 100644 --- a/include/xrpl/nodestore/detail/varint.h +++ b/include/xrpl/nodestore/detail/varint.h @@ -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;