Fix warning from signed/unsigned mismatch
Seen (and breaking local build) with VC++2022: qrhid3d12_p_p.h(206): warning C4018: '<': signed/unsigned mismatch QD3D12ObjectHandle::index is a quint32, whereas data is a QVector, with count() returning a signed qsizetype. Pick-to: 6.5 Change-Id: I81946459ea9222dee2cbb2ae4589fb0e4028f5dd Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>bb10
parent
cb54da2366
commit
f97501524a
|
|
@ -203,7 +203,7 @@ struct QD3D12ObjectPool
|
|||
bool isValid(const QD3D12ObjectHandle &handle) const
|
||||
{
|
||||
return handle.index > 0
|
||||
&& handle.index < data.count()
|
||||
&& handle.index < quint32(data.count())
|
||||
&& handle.generation > 0
|
||||
&& handle.generation == data[handle.index].generation
|
||||
&& data[handle.index].object.has_value();
|
||||
|
|
|
|||
Loading…
Reference in New Issue