qmetaobject: Fix sign-compare warning

Simply cast from uint to qsizetype: All supported compilers will already
complain long before we reach an argument can that can represented by
unsigned int but not by qsizetype.

Change-Id: I455bde34db6b50ae9e017c7e2e811e22df926614
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Fabian Kosmale 2022-08-01 14:00:16 +02:00
parent b7802b401f
commit b65e37b744
1 changed files with 1 additions and 1 deletions

View File

@ -2428,7 +2428,7 @@ auto QMetaMethodPrivate::invokeImpl(QMetaMethod self, void *target,
Q_ASSERT(parameters);
Q_ASSERT(typeNames);
if ((paramCount - 1) < priv->data.argc())
if ((paramCount - 1) < qsizetype(priv->data.argc()))
return InvokeFailReason::TooFewArguments;
// 0 is the return type, 1 is the first formal parameter