From bb5a9f9737afc18243fc9443ee061d225822ef21 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 30 Oct 2023 19:08:35 -0500 Subject: [PATCH] fix --- src/utils/utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp index 52d17748..b899287e 100644 --- a/src/utils/utils.cpp +++ b/src/utils/utils.cpp @@ -172,14 +172,14 @@ auto filetime_to_unix_time(const FILETIME &ft) -> remote::file_time { LARGE_INTEGER date{}; date.HighPart = ft.dwHighDateTime; date.LowPart = ft.dwLowDateTime; - date.QuadPart -= 116444736000000000ull; + date.QuadPart -= 116444736000000000ULL; - return date.QuadPart * 100ull; + return date.QuadPart * 100ULL; } void unix_time_to_filetime(const remote::file_time &ts, FILETIME &ft) { - const auto win_time = (ts / 100ULl) + 116444736000000000ull; - ft.dwHighDateTime = win_time >> 32u; + const auto win_time = (ts / 100ULL) + 116444736000000000ULL; + ft.dwHighDateTime = win_time >> 32U; ft.dwLowDateTime = win_time & 0xFFFFFFFF; } #endif