diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-09-12 11:03:07 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-10-02 08:38:31 +0000 |
commit | 2d8b80bb9c623c246c3815c3fd32cbd6392dc27b (patch) | |
tree | 770a077f180262c8813ca23f2196ed31524f052e /src | |
parent | 46201f0e82a7b1629adad196dfa8f7ff1cf4dffd (diff) |
QList: make cast from ptrdiff_t to int explicit
Amends ffc2d5722317fcab86865b11491d7bf7fef3e16d.
Fixes: QTBUG-78235
Change-Id: Ie91d8d71c92bb62e3268847407b7b252c382d700
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 74b57f7ad4..a98a9147d6 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -1031,7 +1031,7 @@ int lastIndexOf(const QList<T> &list, const U &u, int from) Node *n = reinterpret_cast<Node *>(list.p.at(from + 1)); while (n-- != b) { if (n->t() == u) - return typename QList<T>::difference_type(n - b); + return int(n - b); } } return -1; |