diff options
Diffstat (limited to 'src/corelib/tools/qstring.h')
-rw-r--r-- | src/corelib/tools/qstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qstring.h b/src/corelib/tools/qstring.h index 5b48a53179..47cca0d280 100644 --- a/src/corelib/tools/qstring.h +++ b/src/corelib/tools/qstring.h @@ -1245,7 +1245,7 @@ public: QStringRef appendTo(QString *string) const; inline const QChar at(int i) const - { Q_ASSERT(i >= 0 && i < size()); return m_string->at(i + m_position); } + { Q_ASSERT(uint(i) < uint(size())); return m_string->at(i + m_position); } #ifndef QT_NO_CAST_FROM_ASCII // ASCII compatibility |