Fix warning in qmetaobjectbuilder.cpp

src\corelib\kernel\qmetaobjectbuilder.cpp(1489): warning C4267: '+=':
conversion from 'size_t' to 'int', possible loss of data

Change-Id: I9cf9bdcb62b796eb8d3f3c633640b648cb11b39f
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Mitch Curtis 2020-03-10 14:16:47 +01:00
parent 761197e9d2
commit 45695444ed

View File

@ -1486,7 +1486,7 @@ static int buildMetaObject(QMetaObjectBuilderPrivate *d, char *buf,
types++;
}
}
size += sizeof(QMetaType) * d->properties.size();
size += static_cast<int>(sizeof(QMetaType) * d->properties.size());
}
// Align the final size and return it.