From d0208e1d52590320c11cb527d940ca91e300c753 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Thu, 23 Feb 2023 23:47:51 +0100 Subject: [PATCH] C API: u8 in Rust corresponds to unsigned char* in C Related to https://github.com/wasmerio/wasmer/pull/3597/ --- include/wasm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wasm.h b/include/wasm.h index 325e618..4463ff9 100644 --- a/include/wasm.h +++ b/include/wasm.h @@ -475,7 +475,7 @@ WASM_API_EXTERN own wasm_memory_t* wasm_memory_new(wasm_store_t*, const wasm_mem WASM_API_EXTERN own wasm_memorytype_t* wasm_memory_type(const wasm_memory_t*); -WASM_API_EXTERN byte_t* wasm_memory_data(wasm_memory_t*); +WASM_API_EXTERN unsigned char* wasm_memory_data(wasm_memory_t*); WASM_API_EXTERN size_t wasm_memory_data_size(const wasm_memory_t*); WASM_API_EXTERN wasm_memory_pages_t wasm_memory_size(const wasm_memory_t*);