1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin.wasm_bare: fix malloc invocation (#13740)

This commit is contained in:
playX 2022-03-15 13:55:39 +03:00 committed by GitHub
parent c5174c2c69
commit 78b1cbefff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ module builtin
[unsafe]
pub fn __malloc(size usize) voidptr {
unsafe {
return malloc(int(size))
return C.malloc(int(size))
}
}