From 9401f66ad7d4aef1b8c7717468baf1a2c4ef061c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 8 Jan 2025 00:21:57 +0100 Subject: [PATCH] Cosmetics --- src/data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data.cpp b/src/data.cpp index 2f22549..20f9582 100644 --- a/src/data.cpp +++ b/src/data.cpp @@ -27,8 +27,8 @@ static inline qint64 zigzag64decode(quint64 value) template static bool varint(CTX &ctx, T &val) { + unsigned int shift = 0; val = 0; - uint shift = 0; while (ctx.bp < ctx.be) { val |= ((quint8)*ctx.bp & 0x7F) << shift; @@ -148,11 +148,11 @@ static bool skip(CTX &ctx) static bool value(CTX &ctx, QVariant &val) { - qint32 len; QByteArray ba; quint64 num; double dnum; float fnum; + qint32 len; if (!length(ctx, len)) return false;