diff options
-rw-r--r-- | tipper/translations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tipper/translations.cpp b/tipper/translations.cpp index 276ddcd..17ce9b1 100644 --- a/tipper/translations.cpp +++ b/tipper/translations.cpp @@ -494,7 +494,7 @@ TCHAR *day_month_year_hours_minutes_seconds_to_time_difference(HANDLE hContact, li.HighPart = ft.dwHighDateTime; li.LowPart = ft.dwLowDateTime; li_now.HighPart = ft_now.dwHighDateTime; li_now.LowPart = ft_now.dwLowDateTime; - long diff = (long)((li_now.QuadPart - li.QuadPart) / (LONGLONG)10000000LL); + long diff = (long)((li_now.QuadPart - li.QuadPart) / (LONGLONG)10000000L); int y = diff / 60 / 60 / 24 / 365; int d = (diff - y * 60 * 60 * 24 * 365) / 60 / 60 / 24; int h = (diff - y * 60 * 60 * 24 * 365 - d * 60 * 60 * 24) / 60 / 60; |