mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: automatically move (some) referenced objects to heap (#9873)
This commit is contained in:
@@ -80,7 +80,7 @@ pub fn (mut ctx CancelContext) err() IError {
|
||||
|
||||
pub fn (ctx CancelContext) value(key string) ?voidptr {
|
||||
if key == cancel_context_key {
|
||||
return voidptr(&ctx)
|
||||
return voidptr(unsafe { &ctx })
|
||||
}
|
||||
return ctx.context.value(key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user