[ros-diffs] [tkreuzer] 49532: [MSVC] Fix warnings

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Nov 8 13:48:46 UTC 2010


Author: tkreuzer
Date: Mon Nov  8 13:48:45 2010
New Revision: 49532

URL: http://svn.reactos.org/svn/reactos?rev=49532&view=rev
Log:
[MSVC]
Fix warnings

Modified:
    branches/cmake-bringup/lib/sdk/crt/include/internal/time.h

Modified: branches/cmake-bringup/lib/sdk/crt/include/internal/time.h
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/include/internal/time.h?rev=49532&r1=49531&r2=49532&view=diff
==============================================================================
--- branches/cmake-bringup/lib/sdk/crt/include/internal/time.h [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/sdk/crt/include/internal/time.h [iso-8859-1] Mon Nov  8 13:48:45 2010
@@ -20,9 +20,9 @@
     ULargeInt.HighPart = FileTime->dwHighDateTime;
     ULargeInt.QuadPart -= DIFFTIME;
 
-    time = ULargeInt.QuadPart / 10000000;
+    time = (time_t)(ULargeInt.QuadPart / 10000000);
     if (millitm)
-        *millitm = (ULargeInt.QuadPart % 10000000) / 10000;
+        *millitm = (USHORT)((ULargeInt.QuadPart % 10000000) / 10000);
 
     return time;
 }




More information about the Ros-diffs mailing list