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

checker: prohibit casting void (#10690)

This commit is contained in:
shadowninja55
2021-07-07 14:59:58 -04:00
committed by GitHub
parent 6436d9a827
commit 806d6172cb
5 changed files with 11 additions and 2 deletions

View File

@ -18,7 +18,7 @@ fn (req &Request) ssl_do(port int, method Method, host_name string, path string)
$if trace_http_request ? {
eprintln('> $sdata')
}
length := int(C.request(&ctx, port, addr.to_wide(), sdata.str, &buff))
length := C.request(&ctx, port, addr.to_wide(), sdata.str, &buff)
C.vschannel_cleanup(&ctx)
response_text := unsafe { buff.vstring_with_len(length) }
$if trace_http_response ? {