diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2022-09-26 21:53:45 +0400 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2022-09-26 21:53:45 +0400 |
commit | 359e76a48c121037a352b1b6fe94a08f9c57c6be (patch) | |
tree | 7d34eeb95026b33633a411e0796b4a6112d8ec85 /source | |
parent | 38e2f307991aa1d4d9c8f512bd9b4a656057355b (diff) | |
download | kit-359e76a48c121037a352b1b6fe94a08f9c57c6be.zip |
[win32] Fix uint64_t
Diffstat (limited to 'source')
-rw-r--r-- | source/kit/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/kit/file.c b/source/kit/file.c index b05415f..35d7034 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -10,6 +10,7 @@ enum { PATH_BUF_SIZE = 4096 }; # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN 1 # endif +# include <stdint.h> # include <Windows.h> #else # include <dirent.h> @@ -324,7 +325,7 @@ ptrdiff_t kit_file_size(kit_str_t const path) { DWORD high; DWORD low = GetFileSize(f, &high); CloseHandle(f); - return (ptrdiff_t) (((uint64_t) high << 32) | (uint64_t) low); + return (ptrdiff_t) ((((uint64_t) high) << 32) | (uint64_t) low); } #else struct stat info; |