mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-22 13:11:32 +00:00
fix(runtime-c-api) Change mutability of memory
for const
in wasmer_memory_data_length
.
This commit is contained in:
@ -198,7 +198,7 @@ pub extern "C" fn wasmer_memory_data(memory: *const wasmer_memory_t) -> *mut u8
|
||||
/// ```
|
||||
#[allow(clippy::cast_ptr_alignment)]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn wasmer_memory_data_length(memory: *mut wasmer_memory_t) -> u32 {
|
||||
pub extern "C" fn wasmer_memory_data_length(memory: *const wasmer_memory_t) -> u32 {
|
||||
if memory.is_null() {
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user