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

builtin: tag array methods unsafe: *_many, grow_len, pointers (#8983)

This commit is contained in:
Nick Treleaven
2021-02-26 21:55:09 +00:00
committed by GitHub
parent 8874379c48
commit 23f231ee61
6 changed files with 14 additions and 10 deletions

View File

@ -74,7 +74,7 @@ pub fn (mut pool PoolProcessor) set_max_jobs(njobs int) {
// work_on_items returns *after* all threads finish.
// You can optionally call get_results after that.
pub fn (mut pool PoolProcessor) work_on_items<T>(items []T) {
pool.work_on_pointers( items.pointers() )
pool.work_on_pointers( unsafe { items.pointers() } )
}
pub fn (mut pool PoolProcessor) work_on_pointers(items []voidptr) {