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

all: wrap up unsafe { nil } (p. 3)

This commit is contained in:
Alexander Medvednikov
2022-07-21 21:01:30 +03:00
parent a68d03ac59
commit 9099594a49
51 changed files with 86 additions and 86 deletions

View File

@ -7,7 +7,7 @@ import runtime
fn C.atomic_fetch_add_u32(voidptr, u32) u32
pub const (
no_result = voidptr(0)
no_result = unsafe { nil }
)
pub struct PoolProcessor {
@ -48,7 +48,7 @@ pub fn new_pool_processor(context PoolProcessorConfig) &PoolProcessor {
mut pool := PoolProcessor{
items: []
results: []
shared_context: voidptr(0)
shared_context: unsafe { nil }
thread_contexts: []
njobs: context.maxjobs
ntask: 0