summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/kernel
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2024-04-18 11:50:04 -0700
committerThiago Macieira <thiago.macieira@intel.com>2024-04-22 21:36:29 -0700
commit2dfb7f3337f601e90532499acc763be1c339aa4d (patch)
treefdf5a2f903cb5fc94f6c8a0e63057cc835178965 /tests/auto/network/kernel
parentf19e9f2521ff7784223ec34fc6794583f4faa2a5 (diff)
tst_QDnsLookup: fix MSVC 'truncation of constant value' warning
0x80 is too big for a signed char (range is -0x80 to 0x7f). Pick-to: 6.7 Change-Id: I455fe22ef4ad4b2f9b01fffd17c7746f4ea3c536 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/network/kernel')
-rw-r--r--tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp b/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp
index 20ecf8a6ab..411975c31a 100644
--- a/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp
+++ b/tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp
@@ -556,7 +556,7 @@ void tst_QDnsLookup::setNameserverLoopback()
// send an NXDOMAIN reply to release the lookup thread
QByteArray reply = data;
- reply[2] = 0x80; // header->qr = true;
+ reply[2] = 0x80U; // header->qr = true;
reply[3] = 3; // header->rcode = NXDOMAIN;
server.writeDatagram(dgram.makeReply(reply));
server.close();