QVector: Fix signedness warning in assert.
Task-number: QTBUG-30331 Change-Id: I91b346b36162e8146a05babd24afa4bfb7259bec Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>bb10
parent
26da8c34bb
commit
0b12cf613f
|
|
@ -493,7 +493,7 @@ void QVector<T>::reallocData(const int asize, const int aalloc, QArrayData::Allo
|
|||
}
|
||||
x->capacityReserved = d->capacityReserved;
|
||||
} else {
|
||||
Q_ASSERT(d->alloc == aalloc); // resize, without changing allocation size
|
||||
Q_ASSERT(int(d->alloc) == aalloc); // resize, without changing allocation size
|
||||
Q_ASSERT(isDetached()); // can be done only on detached d
|
||||
Q_ASSERT(x == d); // in this case we do not need to allocate anything
|
||||
if (asize <= d->size) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue