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

qmlcachegen generates code with int/qsizetype confusion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF, 6.8
    • 6.7.0 Beta3
    • QML: Compiler
    • None
    • 2fc45188c (dev), 23fc22e16 (dev), 372db480c (dev)

    Description

      Code seen in comments on QTBUG-122004:

      int r2_1;
      int r7_0;
      // generate_LoadQmlContextPropertyLookup
      while (!aotContext->loadScopeObjectPropertyLookup(100, &r2_0)) {
      aotContext->setInstructionPointer(2);
      aotContext->initLoadScopeObjectPropertyLookup(100, QMetaType::fromType<QQmlListProperty<QObject>>());
      if (aotContext->engine->hasError())
          return bool();
      }
      // generate_GetLookup
      r2_1 = r2_0.count(&r2_0);
      

      Triggers:

       warning: conversion from 'qsizetype' {aka 'long long int'} to 'int' may change value [-Wconversion]
       1565 | r2_1 = r2_0.count(&r2_0);
      

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              ulherman Ulf Hermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes