Browse Source

* Fix bug found by new hint.

git-svn-id: trunk@7818 -
daniel 18 years ago
parent
commit
7c124b3817
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/dateutil.inc

+ 1 - 1
rtl/objpas/dateutil.inc

@@ -958,7 +958,7 @@ Var
 
 begin
   DecodeTime(AValue,H,M,S,MS);
-  Result:=((M+(H+((DayOfTheYear(AValue)-1)*24))*60)*60+S)*1000+MS;
+  Result:=((M+(H+((int64(DayOfTheYear(AValue))-1)*24))*60)*60+S)*1000+MS;
 end;