blob: ff09d689ae5ced246bddcf7941b0bfdb3594ae9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- a/common/mld.cpp 2018-05-22 18:18:21.000000000 +0200
+++ b/common/mld.cpp 2018-06-26 13:59:58.562569302 +0200
@@ -24,6 +24,14 @@
#include <QHostAddress>
#include <QStringList>
+template <> inline Q_DECL_CONSTEXPR unsigned long qbswap<unsigned long>(unsigned long source) {
+ if (sizeof(unsigned long) == 8) {
+ return qbswap<quint64>(quint64(source));
+ } else {
+ return qbswap<quint32>(quint32(source));
+ }
+}
+
MldProtocol::MldProtocol(StreamBase *stream, AbstractProtocol *parent)
: GmpProtocol(stream, parent)
{
|