ci: fix failing vlib/orm/orm_test.v
parent
4d0f6767b1
commit
475a2f9b43
|
@ -70,7 +70,7 @@ fn new_array_from_c_array(len int, cap int, elm_size int, c_array voidptr) array
|
||||||
cap_ := if cap < len { len } else { cap }
|
cap_ := if cap < len { len } else { cap }
|
||||||
arr := array{
|
arr := array{
|
||||||
element_size: elm_size
|
element_size: elm_size
|
||||||
data: unsafe { malloc(cap_ * elm_size) }
|
data: vcalloc(cap_ * elm_size)
|
||||||
len: len
|
len: len
|
||||||
cap: cap_
|
cap: cap_
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue