diff options
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; |