We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-cflags "-Werror"
void**
1 parent d110f0d commit 5308b63Copy full SHA for 5308b63
vlib/v/gen/c/cgen.v
@@ -5970,7 +5970,7 @@ fn (mut g Gen) go_stmt(node ast.GoStmt, joinable bool) string {
5970
g.gowrappers.writeln('\tret_ptr = thread.ret_ptr;')
5971
}
5972
} else {
5973
- g.gowrappers.writeln('\tint stat = pthread_join(thread, $c_ret_ptr_ptr);')
+ g.gowrappers.writeln('\tint stat = pthread_join(thread, (void **)$c_ret_ptr_ptr);')
5974
5975
g.gowrappers.writeln('\tif (stat != 0) { v_panic(_SLIT("unable to join thread")); }')
5976
if g.pref.os == .windows {
0 commit comments