mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: various fixes for [heap]/auto-heap handling (#10033)
This commit is contained in:
@ -43,7 +43,7 @@ fn (mut ctx Context) println(s string) {
|
||||
}
|
||||
|
||||
fn do_timeout(c &Context) {
|
||||
mut ctx := c
|
||||
mut ctx := unsafe { c }
|
||||
time.sleep(ctx.timeout_ms * time.millisecond)
|
||||
exit(ctx.exitcode)
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ fn (mut context Context) get_changed_vfiles() int {
|
||||
}
|
||||
|
||||
fn change_detection_loop(ocontext &Context) {
|
||||
mut context := ocontext
|
||||
mut context := unsafe { ocontext }
|
||||
for {
|
||||
if context.v_cycles >= max_v_cycles || context.scan_cycles >= max_scan_cycles {
|
||||
context.is_exiting = true
|
||||
|
Reference in New Issue
Block a user