Skip to content

Commit

Permalink
sync: fix compilation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jul 31, 2023
1 parent 2cd5b8a commit 367289a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/sync/sync_windows.c.v
Expand Up @@ -176,7 +176,7 @@ pub fn (mut sem Semaphore) timed_wait(timeout time.Duration) bool {
C.GetSystemTimeAsFileTime(&ft_start)
time_end := ((u64(ft_start.dwHighDateTime) << 32) | ft_start.dwLowDateTime) +
u64(timeout / (100 * time.nanosecond))
mut t_ms := timeout.sys_milliseconds()
mut t_ms := u32(timeout.sys_milliseconds())
C.AcquireSRWLockExclusive(&sem.mtx)
mut res := 0
c = C.atomic_load_u32(&sem.count)
Expand Down

0 comments on commit 367289a

Please sign in to comment.