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

cgen: fix warnings (#5820)

This commit is contained in:
ka-weihe
2020-07-14 00:16:31 +02:00
committed by GitHub
parent 042add0e7f
commit df45488e09
14 changed files with 59 additions and 55 deletions

View File

@ -26,7 +26,7 @@ fn make_unix_time(t C.tm) int {
fn to_local_time(t Time) Time {
loc_tm := C.tm{}
C.localtime_r(&t.unix, &loc_tm)
C.localtime_r(time_t(&t.unix), &loc_tm)
return convert_ctime(loc_tm, t.microsecond)
}