File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1389,20 +1389,20 @@ wasm_enlarge_memory_internal(WASMModuleInstanceCommon *module,
1389
1389
if (full_size_mmaped ) {
1390
1390
#ifdef BH_PLATFORM_WINDOWS
1391
1391
if (!os_mem_commit (memory -> memory_data_end ,
1392
- ( mem_offset_t )( total_size_new - total_size_old ) ,
1392
+ total_size_new - total_size_old ,
1393
1393
MMAP_PROT_READ | MMAP_PROT_WRITE )) {
1394
1394
ret = false;
1395
1395
goto return_func ;
1396
1396
}
1397
1397
#endif
1398
1398
1399
1399
if (os_mprotect (memory -> memory_data_end ,
1400
- ( mem_offset_t )( total_size_new - total_size_old ) ,
1400
+ total_size_new - total_size_old ,
1401
1401
MMAP_PROT_READ | MMAP_PROT_WRITE )
1402
1402
!= 0 ) {
1403
1403
#ifdef BH_PLATFORM_WINDOWS
1404
1404
os_mem_decommit (memory -> memory_data_end ,
1405
- ( mem_offset_t )( total_size_new - total_size_old ) );
1405
+ total_size_new - total_size_old );
1406
1406
#endif
1407
1407
ret = false;
1408
1408
goto return_func ;
You can’t perform that action at this time.
0 commit comments