mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: check unsafe V function calls (#8752)
This commit is contained in:
@@ -262,8 +262,8 @@ pub fn new(port int, cb voidptr) &Picoev {
|
||||
loop: loop
|
||||
cb: cb
|
||||
date: C.get_date()
|
||||
buf: malloc(max_fds * max_read + 1)
|
||||
out: malloc(max_fds * max_write + 1)
|
||||
buf: unsafe { malloc(max_fds * max_read + 1) }
|
||||
out: unsafe { malloc(max_fds * max_write + 1) }
|
||||
}
|
||||
C.picoev_add(loop, fd, C.PICOEV_READ, 0, accept_callback, pv)
|
||||
go update_date(mut pv)
|
||||
|
||||
Reference in New Issue
Block a user