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:
@ -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
|
||||
|
Reference in New Issue
Block a user