Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1602

shiboken fails with c static arrays inside struct

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Out of scope
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Shiboken
    • Labels:
      None
    • Platform/s:
      All

      Description

      im creating this bug report as i've been told on the irc channel.

       

      im exposing c++ class that wraps Intel's Decimal c library

      The library makes use of c static arrays defined in structs as its internal data

      Shiboken fails with simple struct:

      typedef unsigned long long BID_UINT64;
      struct __attribute__((aligned(16))) BID_UINT128
      {
          BID_UINT64 w[2];
      };
      

       

      and im getting error:

      no matching function for call to 'copyToPython(SbkArrayConverter*, long long unsigned int [2])' || pyOut =Shiboken::Conversions::copyToPython(Shiboken::Conversions::ArrayTypeConverter<unsigned long long>(1), &cppSelf->w);

       

      the files that i attached are stripped down to minimize text size - decimal class is fairly long...

        Attachments

        1. compiler_log.txt
          3 kB
        2. decimal.cpp
          0.4 kB
        3. decimal.h
          2 kB
        4. typesystem.xml
          0.7 kB

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              meomic Michal M
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes