time/FileTime: use uint_least64_t

This commit is contained in:
Max Kellermann 2021-08-10 14:10:06 +02:00
parent 017814adc7
commit 488afc47d4
1 changed files with 3 additions and 3 deletions

View File

@ -35,13 +35,13 @@
#include <chrono>
#include <cstdint>
constexpr uint64_t
constexpr uint_least64_t
ConstructUint64(DWORD lo, DWORD hi) noexcept
{
return uint64_t(lo) | (uint64_t(hi) << 32);
return uint_least64_t(lo) | (uint_least64_t(hi) << 32);
}
constexpr uint64_t
constexpr uint_least64_t
ToUint64(FILETIME ft) noexcept
{
return ConstructUint64(ft.dwLowDateTime, ft.dwHighDateTime);