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

fix pthread 3rd arg voidptr warning

This commit is contained in:
Nicolas Sauzede
2019-11-07 22:58:49 +01:00
committed by Alexander Medvednikov
parent 0ca75f7782
commit 3a99217592
2 changed files with 2 additions and 2 deletions

View File

@@ -664,7 +664,7 @@ fn (p mut Parser) async_fn_call(f Fn, method_ph int, receiver_var, receiver_type
p.genln(' CreateThread(0,0, $wrapper_name, $parg, 0,0);')
}
else {
p.genln('int $tmp2 = pthread_create(& $thread_name, NULL, $wrapper_name, $parg);')
p.genln('int $tmp2 = pthread_create(& $thread_name, NULL, (void *)$wrapper_name, $parg);')
}
p.check(.rpar)
}