[Interest] Qt 6.4.3 compiler warnings in QTaggedPointer

Hamish Moffatt hamish at risingsoftware.com
Thu Mar 23 11:03:24 CET 2023

On 23/3/23 18:15, Thiago Macieira wrote:
> On Wednesday, 22 March 2023 18:19:59 HST Hamish Moffatt via Interest wrote:
>> static constexpr quint8 tagBits =
>> QtPrivate::qConstexprCountTrailingZeroBits(alignment);
>> So would you fix it with a cast, or by changing the variable type to int
>> to match the function?
> Either solution is fine. I was thinking of simply adding a quint8() cast around
> the result, but changing to uint also works too. The latter is a smaller
> change anyway.
OK. There's a similar issue in QtConcurrent (unchanged since 5.15 
actually) also driving me mad - __int64 resulting from std::distance is 
assigned to int.


More information about the Interest mailing list