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

checker: stricter mutable reference check (fix #14803) (#14805)

This commit is contained in:
yuyi
2022-06-21 18:23:21 +08:00
committed by GitHub
parent c6f94e9cab
commit c160ba2a8d
11 changed files with 51 additions and 21 deletions

View File

@ -86,7 +86,7 @@ pub fn init(cfg Config) &Context {
C.atexit(restore_terminal_state)
for code in ctx.cfg.reset {
os.signal_opt(code, fn (_ os.Signal) {
mut c := ui.ctx_ptr
mut c := unsafe { ui.ctx_ptr }
if unsafe { c != 0 } {
c.cleanup()
}