--- 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 #include +template <> inline Q_DECL_CONSTEXPR unsigned long qbswap(unsigned long source) { + if (sizeof(unsigned long) == 8) { + return qbswap(quint64(source)); + } else { + return qbswap(quint32(source)); + } +} + MldProtocol::MldProtocol(StreamBase *stream, AbstractProtocol *parent) : GmpProtocol(stream, parent) {