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:
@ -62,7 +62,7 @@ fn (mut ctx Context) shift(len int) {
|
||||
// TODO: don't actually do this, lmao
|
||||
[inline]
|
||||
fn (mut ctx Context) resize_arr(size int) {
|
||||
mut l := &ctx.read_buf.len
|
||||
mut l := unsafe { &ctx.read_buf.len }
|
||||
unsafe {
|
||||
*l = size
|
||||
_ = l
|
||||
|
Reference in New Issue
Block a user