summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-04-09 11:09:43 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-11 10:03:00 +0200
commit0b12cf613f855278c6fb6fefbdcd05ff6948a5e0 (patch)
tree08dbc885a388eec9bf6370ab60dac7a128a38b6d /src
parent26da8c34bbc7bccd61ef64a91f99896780ba6707 (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')
-rw-r--r--src/corelib/tools/qvector.h2
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) {