LCL: typecasts for different integer type assignments
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
-
Reporter name: Juha Manninen
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
- Reporter name: Juha Manninen
Description:
In QTWidgets this:
DrawStruct.ItemID := CurrIndex;
gave a range check error because CurrIndex was -1. Typecast fixes it.
While I was on it I added some more typecasts to both GTK2 and QT integers.
There may still be similar cases left, I didn't go through the whole LCL.
However, Windows bindings have some careful typacasts already.
Patch uploaded. It is made using git which uses a non-compatible diff format.
If you need SVN diff format, I can copy the files to the SVN repo and create it.
Mantis conversion info:
- Mantis ID: 17531
- Version: 0.9.29 (SVN)
- Fixed in revision: 27786 (#28632554)
- Target version: 0.9.30