io/FileReader: use uint_least64_t

This commit is contained in:
Max Kellermann 2023-10-05 17:53:29 +02:00
parent a9ba9a5f92
commit 19c73680cf

View File

@ -67,7 +67,7 @@ public:
FileInfo GetFileInfo() const; FileInfo GetFileInfo() const;
[[gnu::pure]] [[gnu::pure]]
uint64_t GetSize() const noexcept { uint_least64_t GetSize() const noexcept {
#ifdef _WIN32 #ifdef _WIN32
LARGE_INTEGER size; LARGE_INTEGER size;
return GetFileSizeEx(handle, &size) return GetFileSizeEx(handle, &size)
@ -79,7 +79,7 @@ public:
} }
[[gnu::pure]] [[gnu::pure]]
uint64_t GetPosition() const noexcept { uint_least64_t GetPosition() const noexcept {
#ifdef _WIN32 #ifdef _WIN32
LARGE_INTEGER zero; LARGE_INTEGER zero;
zero.QuadPart = 0; zero.QuadPart = 0;