Merge pull request #479 from bmiklautz/fixtimezonewarnings

timezone: Added missing ULL to get rid of compiler warnings
This commit is contained in:
Otavio Salvador 2012-03-01 06:40:44 -08:00
commit 9edae6ccbc

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;
}