summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2011-01-11 12:58:20 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-01-11 12:58:20 (GMT)
commitf30e617950de2882434bfa5707bd8cdb91102c97 (patch)
treeb4aa60e9c77af7cbdc4a78c397b9a772e4daf3aa
parent2da612ca235fe65a7bfc7a7515fec15eaf1134e7 (diff)
downloadQt-f30e617950de2882434bfa5707bd8cdb91102c97.zip
Qt-f30e617950de2882434bfa5707bd8cdb91102c97.tar.gz
Qt-f30e617950de2882434bfa5707bd8cdb91102c97.tar.bz2
fix warning "comparison between signed and unsigned integer expressions"
sizeof produces signed int result; QT_SOCKOPTLEN_T is int Merge-request: 955 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
-rw-r--r--src/network/socket/qnativesocketengine_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qnativesocketengine_win.cpp b/src/network/socket/qnativesocketengine_win.cpp
index eec78c4..4c290f7 100644
--- a/src/network/socket/qnativesocketengine_win.cpp
+++ b/src/network/socket/qnativesocketengine_win.cpp
@@ -923,7 +923,7 @@ QNetworkInterface QNativeSocketEnginePrivate::nativeMulticastInterface() const
QT_SOCKOPTLEN_T sizeofv = sizeof(v);
if (::getsockopt(socketDescriptor, IPPROTO_IP, IP_MULTICAST_IF, (char *) &v, &sizeofv) == -1)
return QNetworkInterface();
- if (v.s_addr != 0 && sizeofv >= sizeof(v)) {
+ if (v.s_addr != 0 && sizeofv >= QT_SOCKOPTLEN_T(sizeof(v))) {
QHostAddress ipv4(ntohl(v.s_addr));
QList<QNetworkInterface> ifaces = QNetworkInterface::allInterfaces();
for (int i = 0; i < ifaces.count(); ++i) {