1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: fix macos job (building V with -cflags --Werror)

This commit is contained in:
Delyan Angelov
2021-04-05 22:32:33 +03:00
parent 5f07c583fb
commit 7c664de8aa
2 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ fn darwin_now() Time {
C.gettimeofday(&tv, 0)
loc_tm := C.tm{}
asec := voidptr(&tv.tv_sec)
C.localtime_r(&time_t(asec), &loc_tm)
C.localtime_r(asec, &loc_tm)
return convert_ctime(loc_tm, int(tv.tv_usec))
}