From 488afc47d41c8d6ea8c0d7215d88d176402d04a6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Aug 2021 14:10:06 +0200 Subject: [PATCH] time/FileTime: use uint_least64_t --- src/time/FileTime.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/time/FileTime.hxx b/src/time/FileTime.hxx index 4f20216eb..67fd5770b 100644 --- a/src/time/FileTime.hxx +++ b/src/time/FileTime.hxx @@ -35,13 +35,13 @@ #include #include -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);