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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      clang++
    • Platform/s:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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