Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89825

shorten-64-to-32 warning in qvector.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.15.2
    • None
    • clang++
    • Linux/X11

    Description

      ..../include/QtCore/qvector.h:1016:26: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                     return n - d->begin();
                     ~~~~~~ ~^~~~~~~~~~~
      ..../include/QtCore/qvector.h:182:23: note: in instantiation of member function 'QVector
      <Scriptable *>::indexOf' requested here
             const int i = indexOf(t);
                           ^

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            mkoller Martin Koller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes