summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-12 07:22:45 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-12 07:22:45 +0200
commitffe8782808961a70ddaf621bc176c477e3dcef31 (patch)
treeb1942fb7593cd6f6e505f7be964b8a3cbe3de62d /source
parent6aefd01e619ba10a78b094659673e8ba5bef338f (diff)
downloadkit-ffe8782808961a70ddaf621bc176c477e3dcef31.zip
kit_test: signals
Diffstat (limited to 'source')
-rw-r--r--source/kit/file.c6
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);