2
0
Эх сурвалжийг харах

* fix from r7819 extended to more platforms

git-svn-id: trunk@7828 -
Tomas Hajny 18 жил өмнө
parent
commit
c00021373a

+ 1 - 1
rtl/amiga/dos.pp

@@ -431,7 +431,7 @@ var
   TV: TTimeVal;
   TV: TTimeVal;
 begin
 begin
   Get_Sys_Time (@TV);
   Get_Sys_Time (@TV);
-  GetMsCount := TV.TV_Secs * 1000 + TV.TV_Micro div 1000;
+  GetMsCount := int64 (TV.TV_Secs) * 1000 + TV.TV_Micro div 1000;
 end;
 end;
 
 
 {******************************************************************************
 {******************************************************************************

+ 1 - 1
rtl/go32v2/dos.pp

@@ -151,7 +151,7 @@ end;
 
 
 function GetMsCount: int64;
 function GetMsCount: int64;
 begin
 begin
-  GetMsCount := MemL [$40:$6c] * 55;
+  GetMsCount := int64 (MemL [$40:$6c]) * 55;
 end;
 end;
 
 
 
 

+ 1 - 1
rtl/morphos/dos.pp

@@ -431,7 +431,7 @@ var
   TV: TTimeVal;
   TV: TTimeVal;
 begin
 begin
   Get_Sys_Time (@TV);
   Get_Sys_Time (@TV);
-  GetMsCount := TV.TV_Secs * 1000 + TV.TV_Micro div 1000;
+  GetMsCount := int64 (TV.TV_Secs) * 1000 + TV.TV_Micro div 1000;
 end;
 end;
 
 
 {******************************************************************************
 {******************************************************************************

+ 1 - 1
rtl/netware/dos.pp

@@ -105,7 +105,7 @@ end;
 
 
 function GetMsCount: int64;
 function GetMsCount: int64;
 begin
 begin
-  GetMsCount := Nwserv.GetCurrentTicks * 55;
+  GetMsCount := int64 (Nwserv.GetCurrentTicks) * 55;
 end;
 end;
 
 
 
 

+ 1 - 1
rtl/netwlibc/dos.pp

@@ -143,7 +143,7 @@ var
   tz : TimeZone;
   tz : TimeZone;
 begin
 begin
   FPGetTimeOfDay (tv, tz);
   FPGetTimeOfDay (tv, tz);
-  GetMsCount := tv.tv_Sec * 1000 + tv.tv_uSec div 1000;
+  GetMsCount := int64 (tv.tv_Sec) * 1000 + tv.tv_uSec div 1000;
 end;
 end;
 
 
 
 

+ 1 - 1
rtl/watcom/dos.pp

@@ -151,7 +151,7 @@ end;
 
 
 function GetMsCount: int64;
 function GetMsCount: int64;
 begin
 begin
-  GetMsCount := MemL [$40:$6c] * 55;
+  GetMsCount := int64 (MemL [$40:$6c]) * 55;
 end;
 end;
 
 
 {******************************************************************************
 {******************************************************************************