diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-04-09 11:09:43 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-11 10:03:00 +0200 |
commit | 0b12cf613f855278c6fb6fefbdcd05ff6948a5e0 (patch) | |
tree | 08dbc885a388eec9bf6370ab60dac7a128a38b6d /src/corelib/tools/qvector.h | |
parent | 26da8c34bbc7bccd61ef64a91f99896780ba6707 (diff) |
QVector: Fix signedness warning in assert.
Task-number: QTBUG-30331
Change-Id: I91b346b36162e8146a05babd24afa4bfb7259bec
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'src/corelib/tools/qvector.h')
-rw-r--r-- | src/corelib/tools/qvector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qvector.h b/src/corelib/tools/qvector.h index a06fb7b4eb..816e1f15f6 100644 --- a/src/corelib/tools/qvector.h +++ b/src/corelib/tools/qvector.h @@ -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) { |