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