Skip to content

Commit 7045dea

Browse files
committed
Global (Windows): fixes building on i686
1 parent 7887067 commit 7045dea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/common/impl/io_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ bool ffPathExpandEnv(const char* in, FFstrbuf* out) {
281281
}
282282
len /= sizeof(wchar_t); // convert from bytes to characters
283283

284-
size_t outLen; // in characters, including null terminator
284+
SIZE_T outLen; // in characters, including null terminator
285285
if (!NT_SUCCESS(RtlExpandEnvironmentStrings(NULL, pathInW, len, pathOutW, ARRAY_SIZE(pathOutW), &outLen))) {
286286
return false;
287287
}

src/common/windows/nt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,9 @@ static inline uint64_t ffKSystemTimeToUInt64(const volatile KSYSTEM_TIME* pTime)
616616
uint32_t low, high1, high2;
617617

618618
do {
619-
high1 = pTime->High1Time;
620-
low = pTime->LowPart;
621-
high2 = pTime->High2Time;
619+
high1 = (uint32_t) pTime->High1Time;
620+
low = (uint32_t) pTime->LowPart;
621+
high2 = (uint32_t) pTime->High2Time;
622622
} while (high1 != high2);
623623

624624
return ((uint64_t) high1 << 32) | low;

0 commit comments

Comments
 (0)