mirror of
https://github.com/romixlab/qmsgpack.git
synced 2025-07-29 18:07:16 +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)
|
quint8 *MsgPackPrivate::pack(const QVariant &v, quint8 *p, bool wr, QVector<QByteArray> &user_data)
|
||||||
{
|
{
|
||||||
QMetaType::Type t = (QMetaType::Type)v.type();
|
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);
|
p = pack_nil(p, wr);
|
||||||
else if (t == QMetaType::Int)
|
else if (t == QMetaType::Int)
|
||||||
p = pack_int(v.toInt(), p, wr);
|
p = pack_int(v.toInt(), p, wr);
|
||||||
|
Reference in New Issue
Block a user