Re: [Development] Compare signed and unsigned integers in Qt

2024-08-12 Thread Thiago Macieira
On Monday 12 August 2024 04:57:56 GMT-7 Tatiana Borisova via Development wrote: > The backport gives to Qt users a possibility to start using the safe > comparison with C++17 and since Qt 6.9. The 'q20' namespace checks if std > implementation is available and takes it, otherwise it takes our > im

[Development] Compare signed and unsigned integers in Qt

2024-08-12 Thread Tatiana Borisova via Development
Comparison between signed and unsigned integer types seems to be a simple case, but sometimes it leads to nasty bugs in the code. Briefly recall the problem: Each integer type with opposite signed and unsigned identificators occupies the same size in the memory. But being unsigned, it can only c