timezone: Added missing ULL to get rid of compiler warnings

This commit is contained in:
Bernhard Miklautz 2012-03-01 15:30:20 +01:00
parent 1b087615e7
commit dfae3edd86

View File

@ -1543,14 +1543,14 @@ boolean freerdp_match_unix_timezone_identifier_with_list(const char* tzid, const
uint64 freerdp_get_windows_time_from_unix_time(time_t unix_time)
{
uint64 windows_time;
windows_time = (unix_time * 10000000) + 621355968000000000;
windows_time = (unix_time * 10000000) + 621355968000000000ULL;
return windows_time;
}
time_t freerdp_get_unix_time_from_windows_time(uint64 windows_time)
{
time_t unix_time;
unix_time = (windows_time - 621355968000000000) / 10000000;
unix_time = (windows_time - 621355968000000000ULL) / 10000000;
return unix_time;
}