ci: fix failing vlib/orm/orm_test.v

pull/12298/head
Delyan Angelov 2021-10-28 17:33:18 +03:00
parent 4d0f6767b1
commit 475a2f9b43
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -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_
} }