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:
parent
761197e9d2
commit
45695444ed
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user