Cosmetics

This commit is contained in:
Martin Tůma 2025-01-08 00:21:57 +01:00
parent 0c63b66544
commit 9401f66ad7

View File

@ -27,8 +27,8 @@ static inline qint64 zigzag64decode(quint64 value)
template<typename T> template<typename T>
static bool varint(CTX &ctx, T &val) static bool varint(CTX &ctx, T &val)
{ {
unsigned int shift = 0;
val = 0; val = 0;
uint shift = 0;
while (ctx.bp < ctx.be) { while (ctx.bp < ctx.be) {
val |= ((quint8)*ctx.bp & 0x7F) << shift; val |= ((quint8)*ctx.bp & 0x7F) << shift;
@ -148,11 +148,11 @@ static bool skip(CTX &ctx)
static bool value(CTX &ctx, QVariant &val) static bool value(CTX &ctx, QVariant &val)
{ {
qint32 len;
QByteArray ba; QByteArray ba;
quint64 num; quint64 num;
double dnum; double dnum;
float fnum; float fnum;
qint32 len;
if (!length(ctx, len)) if (!length(ctx, len))
return false; return false;