Fix warnings

svn path=/branches/cmake-bringup/; revision=49532
This commit is contained in:
Timo Kreuzer 2010-11-08 13:48:45 +00:00
parent 77e17454fa
commit 5f52062082

View file

@ -20,9 +20,9 @@ FileTimeToUnixTime(const FILETIME *FileTime, USHORT *millitm)
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;
}