mirror of
https://github.com/vlang/v.git
synced 2025-09-09 15:27:05 -04:00
live: fix compilation
This commit is contained in:
parent
d31142ac3e
commit
921b5cddd0
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user