mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
* Patch for arithmetic overflow from Petr Kristan
git-svn-id: trunk@10566 -
This commit is contained in:
parent
6c49a0f256
commit
33cb576bba
@ -75,7 +75,7 @@ end;
|
||||
function MSecsToTimeStamp(MSecs: comp): TTimeStamp;
|
||||
begin
|
||||
result.Date := Trunc(msecs / msecsperday);
|
||||
msecs:= comp(msecs-result.date*msecsperday);
|
||||
msecs:= msecs-comp(result.date)*msecsperday;
|
||||
result.Time := Round(MSecs);
|
||||
end ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user