Make m3_GetMemory non-const (#123)

extensions
Alex Beregszaszi 4 years ago committed by GitHub
parent bed4c23b38
commit 0062ecd004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -989,7 +989,7 @@ M3StackInfo m3_GetNativeStackInfo (i32 i_stackSize)
return info;
}
const uint8_t * m3_GetMemory (IM3Runtime i_runtime, uint32_t * o_memorySizeInBytes, uint32_t i_memoryIndex)
uint8_t * m3_GetMemory (IM3Runtime i_runtime, uint32_t * o_memorySizeInBytes, uint32_t i_memoryIndex)
{
uint8_t * memory = NULL;
d_m3Assert (i_memoryIndex == 0);

@ -183,7 +183,7 @@ d_m3ErrorConst (trapStackOverflow, "[trap] stack overflow")
void m3_FreeRuntime (IM3Runtime i_runtime);
const uint8_t * m3_GetMemory (IM3Runtime i_runtime,
uint8_t * m3_GetMemory (IM3Runtime i_runtime,
uint32_t * o_memorySizeInBytes,
uint32_t i_memoryIndex);
// Wasm currently only supports one memory region. i_memoryIndex should be zero.

Loading…
Cancel
Save