Use 64-bit wasm_runtime_enlarge_memory() increment (#3573)
ps. https://github.com/bytecodealliance/wasm-micro-runtime/pull/3569#discussion_r1654398315
This commit is contained in:
@ -921,8 +921,12 @@ return_func:
|
||||
|
||||
bool
|
||||
wasm_runtime_enlarge_memory(WASMModuleInstanceCommon *module_inst,
|
||||
uint32_t inc_page_count)
|
||||
uint64 inc_page_count)
|
||||
{
|
||||
if (inc_page_count > UINT32_MAX) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#if WASM_ENABLE_AOT != 0
|
||||
if (module_inst->module_type == Wasm_Module_AoT) {
|
||||
return aot_enlarge_memory((AOTModuleInstance *)module_inst,
|
||||
|
||||
Reference in New Issue
Block a user