* Patch for arithmetic overflow from Petr Kristan

git-svn-id: trunk@10566 -
This commit is contained in:
michael 2008-03-26 15:33:24 +00:00
parent 6c49a0f256
commit 33cb576bba

View File

@ -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 ;