mirror of
https://github.com/romixlab/qmsgpack.git
synced 2025-06-25 01:21:33 +02:00
Fix CI build.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user