tRegistry.ReadInteger fails if negative number written
Original Reporter info from Mantis: Hoze
-
Reporter name: Joseph Rieth
Original Reporter info from Mantis: Hoze
- Reporter name: Joseph Rieth
Description:
The WriteInteger writes negative number as unsigned integer modulo 2^32 (eg. -1 = 4294967295) into the xlm file. On 32bit linux platform it leads to 'cannot read' error. 64bit linux handles it well.
Steps to reproduce:
var Reg : tRegistry; i : Integer;
Reg.WriteInteger('test',-1);
{and later} i:=Reg.ReadInteger('test');
Mantis conversion info:
- Mantis ID: 31277
- OS: linux 32bit
- Platform: linux 32bit
- Version: 1.6.2
- Fixed in version: 3.1.1
- Fixed in revision: 35344 (#bc9b67c9)
- Monitored by: » Hoze (Joseph Rieth)
- Target version: 3.2.0