mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
This commit is contained in:
@ -170,7 +170,7 @@ fn rw_callback(loop &C.picoev_loop, fd int, events int, cb_arg voidptr) {
|
||||
}
|
||||
} else {
|
||||
r += idx
|
||||
mut s := tos(buf, r)
|
||||
mut s := unsafe { tos(buf, r) }
|
||||
mut out := p.out
|
||||
unsafe {
|
||||
out += fd * max_write
|
||||
|
Reference in New Issue
Block a user