ci: fix vlib/v/tests/project_with_c_code_2/modc/wrapper.v

pull/7430/head^2
Delyan Angelov 2020-12-20 18:33:25 +02:00
parent 23bfbf1665
commit 5f5c53348b
1 changed files with 3 additions and 4 deletions

View File

@ -42,10 +42,9 @@ pub fn call_with_array_param(arr []Vtype) {
for t in arr { for t in arr {
carr << *t.p carr << *t.p
} }
// make it safe // TODO: make it safe
a := carr C.handle_array(carr.data, carr.len)
C.handle_array(a.data, a.len) C.handle_array2(carr.data, carr.len)
C.handle_array2(a.data, a.len)
} }
pub fn destroy_vtype(t Vtype) { pub fn destroy_vtype(t Vtype) {