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

checker: ban unsafe pointer/fn comparison (#14462)

This commit is contained in:
Vincenzo Palazzo
2022-05-20 17:30:16 +02:00
committed by GitHub
parent d81fbb1ccd
commit 17bba712bd
28 changed files with 111 additions and 68 deletions

View File

@@ -207,7 +207,7 @@ fn change_detection_loop(ocontext &Context) {
}
fn (mut context Context) kill_pgroup() {
if context.child_process == 0 {
if unsafe { context.child_process == 0 } {
return
}
if context.child_process.is_alive() {