Use INTERNALS_SIZE

This commit is contained in:
losfair 2019-05-17 01:33:33 +08:00
parent 8e0d71b2bc
commit 6aec1c4b5f
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ impl LocalBacking {
dynamic_sigindices, dynamic_sigindices,
local_functions, local_functions,
internals: Internals([0; 256]), internals: Internals([0; INTERNALS_SIZE]),
} }
} }

View File

@ -700,7 +700,7 @@ mod vm_ctx_tests {
dynamic_sigindices: Map::new().into_boxed_map(), dynamic_sigindices: Map::new().into_boxed_map(),
local_functions: Map::new().into_boxed_map(), local_functions: Map::new().into_boxed_map(),
internals: crate::backing::Internals([0; 256]), internals: crate::backing::Internals([0; crate::backing::INTERNALS_SIZE]),
}; };
let mut import_backing = ImportBacking { let mut import_backing = ImportBacking {
memories: Map::new().into_boxed_map(), memories: Map::new().into_boxed_map(),