From 359e76a48c121037a352b1b6fe94a08f9c57c6be Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Mon, 26 Sep 2022 21:53:45 +0400 Subject: [win32] Fix uint64_t --- source/kit/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') 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 # include #else # include @@ -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; -- cgit v1.2.3