tst_QProperty: fix -Wsign-compare

Amends cb30e45b9a800c6ad9cdfb446a20b6a6e8efbe71.

Pick-to: 6.6 6.5 6.2
Change-Id: I53c32a44c642a931038c7c95de903eafc0d0f6b9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Marc Mutz 2023-06-13 11:10:25 +02:00
parent a2b6c2f343
commit 0ffb5c79db

View File

@ -1505,7 +1505,7 @@ void tst_QProperty::noDoubleCapture()
return size.value();
});
auto bindingPriv = QPropertyBindingPrivate::get(max.binding());
QCOMPARE(bindingPriv->dependencyObserverCount, 1);
QCOMPARE(bindingPriv->dependencyObserverCount, 1U);
size = 4; // should not crash
QCOMPARE(max.value(), 4);
}