diff options
-rw-r--r-- | source/kit/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/kit/file.c b/source/kit/file.c index 4893823..c82ef35 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -371,8 +371,8 @@ kit_file_info_t kit_file_info(kit_str_t path) { if (f != INVALID_HANDLE_VALUE) { FILETIME ft; if (GetFileTime(f, NULL, NULL, &ft) != 0) { - i64 nsec100 = (((i64) ft.dwHighDateTime) << 32) | - (i64) ft.dwLowDateTime; + i64 nsec100 = (((u64) ft.dwHighDateTime) << 32) | + (u64) ft.dwLowDateTime; result.time_modified_sec = (i64) (nsec100 / 10000000); result.time_modified_nsec = (i32) (100 * (nsec100 % 10000000)); } else { @@ -382,7 +382,7 @@ kit_file_info_t kit_file_info(kit_str_t path) { DWORD high; DWORD low = GetFileSize(f, &high); - result.size = (i64) ((((ui64) high) << 32) | (ui64) low); + result.size = (i64) ((((u64) high) << 32) | (u64) low); result.status = KIT_OK; CloseHandle(f); |