mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
consistently use 64 bit in wasm_prepare_buffer
This commit is contained in:
parent
28c3721ecf
commit
0d22a475f8
@ -102,7 +102,7 @@ static mut BUFFERS: Vec<u8> = Vec::new();
|
||||
/// # Safety
|
||||
/// This function should never be used only intended to by used by the host
|
||||
#[no_mangle]
|
||||
pub unsafe fn wasm_prepare_buffer(size: i32) -> i64 {
|
||||
pub unsafe fn wasm_prepare_buffer(size: i64) -> i64 {
|
||||
BUFFERS = vec![0u8; size as usize];
|
||||
BUFFERS.as_ptr() as i64
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user