mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
live: fix compilation
This commit is contained in:
@ -60,7 +60,7 @@ pub fn info() &LiveReloadInfo {
|
|||||||
// started, and the structure LiveReloadInfo will not get updated.
|
// started, and the structure LiveReloadInfo will not get updated.
|
||||||
// All its fields will be 0, but still safe to access.
|
// All its fields will be 0, but still safe to access.
|
||||||
mut x := &LiveReloadInfo{}
|
mut x := &LiveReloadInfo{}
|
||||||
p := &u64(&C.g_live_info)
|
mut p := &u64(&C.g_live_info)
|
||||||
unsafe { *p = &u64(x) }
|
unsafe { *p = &u64(x) }
|
||||||
return x
|
return x
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user