Fix CI build.

This commit is contained in:
Roman Isaikin
2019-06-30 09:15:59 +03:00
parent 024d901605
commit 1733bc7847

View File

@ -20,7 +20,7 @@ QReadWriteLock MsgPackPrivate::packers_lock;
quint8 *MsgPackPrivate::pack(const QVariant &v, quint8 *p, bool wr, QVector<QByteArray> &user_data)
{
QMetaType::Type t = (QMetaType::Type)v.type();
if ((v.isNull() && !v.isValid()) || t == QMetaType::Nullptr)
if ((v.isNull() && !v.isValid()) || t == 51) // QMetaType::Nullptr
p = pack_nil(p, wr);
else if (t == QMetaType::Int)
p = pack_int(v.toInt(), p, wr);