[Interest] Void pointers for Mac ARM

Thiago Macieira thiago.macieira at intel.com
Sun Jun 18 22:27:42 CEST 2023


On Saturday, 17 June 2023 10:09:42 PDT Turtle Creek Software wrote:
> The code also builds OK with the latest Qt6, but running it on an M1 Mac
> gives run-time errors. Void pointers to structs and objects don't cast
> properly and stay null.

Your diagnosis can't be correct.

The ABI on Arm Macs is very similar and reinterpret-casting between different 
pointer types, especially between function pointers and void*, is a simple 
bitwise copy.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230618/e4adec8f/attachment.bin>


More information about the Interest mailing list