From aaae57b113c524eb8fac5f9291911b3a19719ffe Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sun, 10 Jul 2022 16:39:19 +0200 Subject: [PATCH] Fix boolean encoding --- src/ippmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ippmsg.cpp b/src/ippmsg.cpp index 38869e9..15b5749 100644 --- a/src/ippmsg.cpp +++ b/src/ippmsg.cpp @@ -374,7 +374,7 @@ void IppMsg::encode_attr(Bytestream& msg, quint8 tag, QString name, QJsonValue v } case Boolean: { - quint32 tmp_u8 = value.toBool(); + quint8 tmp_u8 = value.toBool(); msg << (quint16)1 << tmp_u8; break; }