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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user