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

use the new &C.Foo(0) cast

This commit is contained in:
Alexander Medvednikov
2019-12-04 12:19:32 +03:00
parent 2bafd41183
commit b2b34e18e4
3 changed files with 4 additions and 3 deletions

View File

@ -102,7 +102,7 @@ fn C.time(int) C.time_t
pub fn now() Time {
t := C.time(0)
mut now := &C.tm{!}
mut now := &C.tm(0)
now = C.localtime(&t)
return convert_ctime(now)
}